The other day i installed debian squeeze as a webserver, but one of the things that drove me nuts, was the fact there wasn't a cronlog, it appears that cron dumps all messages into the generic log /var/log/messages. I didn't want that, i wanted to view the cronlog as it's own seperate file. Nothing obvious on the internet, but trawling through various files i finally found it.
vi /etc/rsyslog.conf
Look for the following line and remove the comment [#]
#cron.* /var/log/cron.log
restart the rsyslog
/etc/init.d/rsyslog restart
You now have a cronlog at /var/log/cronlog
0 comments:
Post a Comment