Nick Jones wrote:

First off cron doesn't log for shit.  Sendmail wasn't running so I
turned postfix on to see if mail shows up in root, it hasn't after 6
hours.  I can see cron starting up in /var/log/messages, but that is
it.  I simply want to place a script called backup under cron.daily.

Maybe you'll start your investigation by discarding the "-" at the start of the run-crons command line in /etc/crontab. Then the execution of run-crons is logged in syslog.

There you can see if it is called at all.

Then, run "sh -x /usr/lib/cron/run-crons" to see what happens in the run-cron script and what scripts are called when. Maybe the check for ac-power is wrong, or whatever.

Up to 10.0, do *not* create the timestamp file in /var/spool/cron/lastrun, to the contrary: _remove it_ for each and every test anew. You might think that you can set the timestamp of that file with touch, but that's not the case: run-cron uses its ctime, not its mtime. So "ls -l" does not show you the time that would be used.

From 10.1 onwards, there is a config variable in /etc/sysconfig/cron that tells when cron.daily/* should be executed.

I hope that puts you on the right track.

        Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod                          Email: [EMAIL PROTECTED]
Roedermark, Germany

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to