miercuri, 17 august 2011

Enable cron log in 10.04 (Lucid Lynx)


In Ubuntu 10.04 (Lucid Lynx), the default mode of operation is to dump cron logs into general system messages.

If you prefer to be able to track your cron logs separately (as is customary with Redhat/RHEL/Centos boxes), you'll need to change your configuration.

Either as the root user, or using su/sudo, edit the following file:
Code:
/etc/rsyslog.d/50-default.conf


Find the line that starts with:
Code:
#cron.*


Remove the comment (the hash sign, aka #), and save the file.

Now restart rsyslog (this may not be necessary, can someone else confirm?):
Code:
service rsyslog restart


Done! Your cron logs will now show up in /var/log/cron.log

Niciun comentariu:

Trimiteți un comentariu