Cron.log does not exist in /var/log

by CarcaBot on August 23, 2009 · 0 comments

Currently, if you run Debian on a Slicehost
server, the log file for cron tasks is disabled by default. I am not
sure about other distributions on other hosts, or even other
distributions on Slicehost. Regardless, here is how you re-enable cron
logging on your slice.

  1. Navigate to /etc  (cmd: cd /etc)
  2. Back-up syslog.conf  (cmd: cp syslog.conf syslog.conf.bak)
  3. Edit syslog.conf  (cmd: pico syslog.conf)
  4. Remove the comment that disables this line: cron.* /var/log/cron.log
  5. Save the file and exit
  6. Restart the syslog daemon  (cmd: /etc/init.d/sysklogd restart)
  7. Check to make sure that the file /var/log/cron.log exists. This is where your log entries will be.

Enjoy!

Previous post:

Next post: