Reload syslog-ng after daemon.log rotation to prevent cron spam
[mirror/dsa-puppet.git] / modules / syslog_ng / files / syslog-ng.logrotate
index 2714307..895a2cd 100644 (file)
    missingok
    notifempty
    compress
+   postrotate
+      if [ -d /run/systemd/system ]; then
+          /bin/systemctl reload syslog-ng.service >/dev/null
+      else
+          /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
+      fi
+   endscript
 }
 
 /var/log/debug {