diff --git a/files/image_config/cron.d/logrotate b/files/image_config/cron.d/logrotate index e7813aa1f57b..877e0cb6d5d7 100644 --- a/files/image_config/cron.d/logrotate +++ b/files/image_config/cron.d/logrotate @@ -1,3 +1,3 @@ # Attempt to rotate system logs once per minute -* * * * * root /usr/sbin/logrotate -f /etc/logrotate.d/rsyslog +* * * * * root /usr/sbin/logrotate /etc/logrotate.d/rsyslog diff --git a/files/image_config/logrotate.d/rsyslog b/files/image_config/logrotate.d/rsyslog index c09604187f7f..0d03e906c9b8 100644 --- a/files/image_config/logrotate.d/rsyslog +++ b/files/image_config/logrotate.d/rsyslog @@ -3,16 +3,18 @@ /var/log/teamd.log { rotate 7 -# Removed 'daily' interval, as we now call logrotate more frequently via cron -# and we want to check these logs every time -# daily - size 100M + daily + maxsize 100M missingok notifempty compress delaycompress postrotate - invoke-rc.d rsyslog rotate > /dev/null + # Calling kill directly instead of 'service rsyslog rotate >/dev/null' due + # to bug in init-system-helpers. Bug has apparently been fixed in v1.47. + # However, Debian Jessie is still using v1.22. + # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672218 + kill -HUP $(cat /var/run/rsyslogd.pid) endscript } /var/log/mail.info @@ -30,14 +32,18 @@ { rotate 4 weekly - size 100M + maxsize 100M missingok notifempty compress delaycompress sharedscripts postrotate - invoke-rc.d rsyslog rotate > /dev/null + # Calling kill directly instead of 'service rsyslog rotate >/dev/null' due + # to bug in init-system-helpers. Bug has apparently been fixed in v1.47. + # However, Debian Jessie is still using v1.22. + # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672218 + kill -HUP $(cat /var/run/rsyslogd.pid) endscript } diff --git a/files/image_config/systemd/journald.conf b/files/image_config/systemd/journald.conf index fc6c4a4e7a1a..c32fbae57051 100644 --- a/files/image_config/systemd/journald.conf +++ b/files/image_config/systemd/journald.conf @@ -15,10 +15,10 @@ #SyncIntervalSec=5m #RateLimitInterval=30s #RateLimitBurst=1000 -SystemMaxUse=50MB +SystemMaxUse=50M #SystemKeepFree= #SystemMaxFileSize= -RuntimeMaxUse=50MB +RuntimeMaxUse=50M #RuntimeKeepFree= #RuntimeMaxFileSize= #MaxRetentionSec=