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:
Find the line that starts with:
Remove the comment (the hash sign, aka #), and save the file.
Now restart rsyslog (this may not be necessary, can someone else confirm?):
Done! Your cron logs will now show up in /var/log/cron.log
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