Yesterday I have configured the log file to crontab on SuseSLES 11SP3. In SuseSLES, if you don't enable crotanb log in /etc/syslog-ng/syslog-ng.conf then syslog-ng don't write.
Here I show you the step by step:
1. Go to /etc/syslog-ng, vi syslog-ng.conf and uncomment the line: #cron.*
2. Restart the cron service
#sudo /etc/init.d/syslog restart
3. Restart cron service
#sudo /etc/init.d/cron
You can go go /var/log/ to view the log file of cron.log
0 nhận xét:
Post a Comment