Crontab error logging

4 replies [Last post]
garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011

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 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I've enabled syslogd and

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

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Wow thanks!

This is a niggle I'd really like to get to the bottom of!.  Hope all this didn't take you to much time?.

 

Ill post results if I get to the bottom of it!

 

Garry

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Had an issue flashing.

Probably an isolated issue at my end but after flashing to the beta version my HAH would not boot back up. Just sat with 1red led and NO activity. 

I have now reflashed to the latest production version and restored all ok. 

Will try to reflash again when I get chance (by chance i mean home from work at reasonsble hour :( )

Which will probably be Thursday now. Like I say probably isolated but thought it worth a heads up at this point in case it's an issue

 

Garry

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Gary thanks for that.  I did

Gary thanks for that.  I did flash this beta before putting it up for download, it worked for me.  Hopefully it works on your 2nd attempt.

Brett

Hardware Info