Anacron Daily won't Execute

    • OMV 2.x
    • Anacron Daily won't Execute

      hi,

      inspired from this thread: rsnapshot + autoshutdown/WOL - flexible daily backups
      it tried so setup an anacron job for a daily/weekly/monthly snapshot yesterday.
      i dont have my maschine running 24/7. So is started my NAS this morning and the anacron job didnt executed.

      after this i trieed to find out why... but now i have to ask you why. from my unterstandings there must by a symlink or a copy in the /etc/cron.daily from the userdefined entry in the /var/lib/openmediavault/cron.d. but there isnt.

      After some testing i delete the timestamp files in /var/spool/anacron and reboot the server.

      After 5 minutes Anacron start the Daily Job.

      Source Code

      1. root@MIRAMAR:~# cat /var/log/syslog | grep anacron
      2. Jun 29 16:55:05 MIRAMAR anacron[2578]: Anacron 2.3 started on 2016-06-29
      3. Jun 29 16:55:05 MIRAMAR anacron[2578]: Will run job `cron.daily' in 5 min.
      4. Jun 29 16:55:05 MIRAMAR anacron[2578]: Will run job `cron.weekly' in 10 min.
      5. Jun 29 16:55:05 MIRAMAR anacron[2578]: Jobs will be executed sequentially
      6. Jun 29 17:00:05 MIRAMAR anacron[2578]: Job `cron.daily' started
      7. Jun 29 17:00:05 MIRAMAR anacron[4711]: Updated timestamp for job `cron.daily' to 2016-06-29
      8. Jun 29 17:16:12 MIRAMAR anacron[2578]: Job `cron.daily' terminated
      9. Jun 29 17:16:12 MIRAMAR anacron[2578]: Job `cron.weekly' started
      10. Jun 29 17:16:12 MIRAMAR anacron[6082]: Updated timestamp for job `cron.weekly' to 2016-06-29
      11. Jun 29 17:16:14 MIRAMAR anacron[2578]: Job `cron.weekly' terminated (mailing output)
      12. Jun 29 17:16:14 MIRAMAR anacron[2578]: Normal exit (2 jobs run)
      Display All


      For testing i have just two small commands to create a file in Root direktory!

      Source Code

      1. root@MIRAMAR:/var/lib/openmediavault/cron.d# cat userdefined-5ee81b4c-42d9-4b7c-b8fe-093633f8feaf
      2. #!/bin/sh
      3. # This configuration file is auto-generated.
      4. # WARNING: Do not edit this file, your changes will be lost.
      5. echo >/root/daily.txt


      Source Code

      1. root@MIRAMAR:/var/lib/openmediavault/cron.d# cat userdefined-c3abfa10-6ab6-4b83-86dc-6be493b169e2
      2. #!/bin/sh
      3. # This configuration file is auto-generated.
      4. # WARNING: Do not edit this file, your changes will be lost.
      5. echo >/root/weekly.txt


      after 10 minutes the weekly Job will execute but still nothing happends.

      the only think that works is the weekly job from /etc/cron.weekly/openmediafault-update-smart-drivedb, becaue i got an email of this.

      maybe someone has an idea and can help me.

      Thanks in advance

      PS.: my native language is German. so German allowed? i'm, not sure, sometimes it looks like here are a lot of german people!