Crontab error logging
19 May, 2012 - 18:39
Just wondering if someone can offer some help on wether obtaining a log file from crontab is possible. I infrequently get crontab dying and cannot link it to anything obvious.
I have read about modifying the syslog.conf file but this doesn't seem to exist on HAH.
Is this possible?
Thanks
Garry
I've enabled syslogd and klogd in the beta. You can read output that has been logged there with logread. Busybox does not honour /etc/syslog.conf btw.
When you upgrade to the beta syslogd should auto-enable if it doesn't check in /etc/rc1.d and make sure you have a S10syslogd entry.
I don't make any guarantee's this will help but its a place to start, and more information can only be useful.
UPDATE:
After you have upgraded to the beta you will to do a little file shuffling so can enable more verbose crond logging by default its level 8. You want level 0 to really see what is going on.
# rm /etc/init.d/cron
# cp /etc_ro_fs/init.d/cron /etc/init.d/cron
# vi /etc/init.d/cron
Change this
if ! pidof crond >/dev/null; then
crond
fi
To this
if ! pidof crond >/dev/null; then
crond -l 0
fi
Brett