Conversation

Notices

  1. still breaking my head over how to find out what (if anything) happened to my cron jobs; finally http://bencane.com/2011/11/02/did-my-cronjob-run/ gave me a clue: Hal (ASUSTOR NAS) has /etc/rsyslog.conf which has the line '#* -/var/log/cron' - and this: '*.info;mail.none;authpriv.none;cron.none -/var/log/messages' aha! never mind enabling syslog when cron logging is doubly disabled; there is also the fact that 'crontab' is a busybox command here so options may be (even) more limited... off to experiment more...

    Saturday, 23-May-15 05:04:01 UTC from oracle.skilledtests.com
    1. @mk the problem with /etc/rsyslog.conf is of course that it's under the system root, thus loaded from flash memory at boot time - so any changes will be completely wiped out on reboot :(

      Saturday, 23-May-15 05:12:53 UTC from oracle.skilledtests.com
    2. @mk yay! I FINALLY managed to get (busybox...) crond to log to a log file; though setting the log level via '-l N' does not seem to be supported (but there may be a workaround for that via '-d N'). So now I know that a) the updatedb command (to update locate database) is actually running and b) that it is unsuccessful because the output file is locked. # #

      Saturday, 23-May-15 18:13:15 UTC from oracle.skilledtests.com
      1. @mk I'm also finding lots of confusion all over the pkace becaue there are many different versions of cron which support (do not support) different features - never mind if they are mentioned in the man page. Hard to know how to write a crontab file that way! #

        Saturday, 23-May-15 18:59:24 UTC from oracle.skilledtests.com
    3. @mk ...and slowly, slowly, am I getting this nice # box called Hal a bit more under control. Lots of riddles and # today, but also #, #, and # In all, a good day (in spite of seemingly having a cold!). And more things to figure out # Like: *which* changes that I made *actually* made cron start writing to a log file? and: how do I replace a @reboot crontab rule because BusyBox doesn't support it? There are probably 2, maybe multiple ways... #, for now!

      Saturday, 23-May-15 22:35:53 UTC from oracle.skilledtests.com
      1. @mk This morning, with more entries in the cron log (and even the system log) I'm starting to notice some odd patterns... 1) after ONE manual ntpdate update 23:24 , I am seeing THREE updates about an hour later (all at the same time 00:30) in syslog - but only TWO entries in the cron log - after that, no more entries. 2) Meanwhile, at 23:02 (BEFORE the automated ntpdate) an EXTRA crond was started, while the old one apparently continued running. 3) From then on, the automated updatedb is successful for the NEW crond while the old crond (not surprisingly) encounters a locked mlocate.db file. Both crond's do ONE ntpd update at 00:30 - it's not clear where the third one (recorded in syslog) at the same time came fery hour one successful and one failed updatedb - but nothing else (no ntpdate) is recorded in the log... # # #

        Sunday, 24-May-15 06:39:00 UTC from oracle.skilledtests.com
        1. @mk what's also odd is that this second cron can not have been started with the same command-line parameters I gave the first one - but it's logging to the cron log anyway. ??? #

          Sunday, 24-May-15 06:46:40 UTC from oracle.skilledtests.com
        2. @mk ...and in the process list on ADM I see THREE crond's running (that would explain the three ntpdate updates, but not why they stopped again after that)

          Sunday, 24-May-15 06:50:16 UTC from oracle.skilledtests.com
          1. @mk as I now found out, when I STOP crond, it gets automatically restarted moments later. WTH is doing that? (Anyway, no need for a 'restart' option in the (boot) startup script...). What is worse is that sometimes it's started even when there is another crond (or 2) already active. Does 'crontab_check' have anything to do with it??

            Sunday, 24-May-15 08:09:31 UTC from oracle.skilledtests.com
            1. The messages log gave a clue: a process called 'watchmand' "relaunches" crond - no idea why because so far it's been doing this twice while crond was already running...

              Sunday, 24-May-15 09:10:49 UTC from oracle.skilledtests.com
            2. @mk and I cannot find anything anywhere about 'crontab_check' (except that it's apparently NOT part of BusyBox). Asking it for its help only produces an error message that it's already running.

              Sunday, 24-May-15 09:14:04 UTC from oracle.skilledtests.com