Cron jobs log to /var/log/cron.log once again (#620)

- Now that logrotate is a cron job that runs every minute, it was polluting syslog
 - Also shrink max size of less-important logs to 50MB and rotate them daily by default
This commit is contained in:
Joe LeVeque 2017-05-23 10:29:54 -07:00 committed by GitHub
parent ef980151ae
commit 714e45f0bb
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@
/var/log/messages /var/log/messages
{ {
rotate 4 rotate 4
weekly daily
maxsize 100M maxsize 50M
missingok missingok
notifempty notifempty
compress compress

View File

@ -3,9 +3,9 @@
# #
auth,authpriv.* /var/log/auth.log auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog *.*;auth,authpriv.none -/var/log/syslog
# Do not redirect cron, daemon, kernel or lpr logs to cron.* /var/log/cron.log
# Do not redirect daemon, kernel or lpr logs to
# their own files. Let them log to /var/log/syslog # their own files. Let them log to /var/log/syslog
#cron.* /var/log/cron.log
#daemon.* -/var/log/daemon.log #daemon.* -/var/log/daemon.log
#kern.* -/var/log/kern.log #kern.* -/var/log/kern.log
#kern.* -/var/persist/log/kern.log #kern.* -/var/persist/log/kern.log