Hello Lance,
On Thu, Sep 29, 2022 at 09:15:13PM +0200, Helge Kreutzmann wrote:
> Sep 29 20:30:01 twentytwo CRON[11425]: (root) CMD ([ -x /etc/init.d/anacron ] 
> && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start 
> >/dev/null; fi)
> 
> /etc/init.d/anacron exists, /run/systemd/system is a directory.

I just realized I read it incorrectly:

root@twentytwo:~# if [ ! -d /run/systemd/system ]; then echo "condition true"; 
fi
root@twentytwo:~#

So the check in the cron file is wrong! It should be 
if [ -d /run/systemd/system ]; then …

Is this the solution? Or is there a downside in changing this? And I
definitely did not configure this manually. And if I log at old log
entries (when anacron was still working fine), the call is the same:
Jul 16 20:30:01 twentytwo CRON[15482]: (root) CMD ([ -x /etc/init.d/anacron ] 
&& if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start 
>/dev/null; fi)

I did not backup /run, so I cannot check if /run/systemd/system was a
directory back then.

Maybe this additional information helps you tracking it down?

Greetings

         Helge
-- 
      Dr. Helge Kreutzmann                     deb...@helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/

Attachment: signature.asc
Description: PGP signature

Reply via email to