syslog-ng: define fastly destination on all log hosts, not just lully
[mirror/dsa-puppet.git] / modules / syslog_ng / files / syslog-ng.logrotate
index 2714307..fd9c92b 100644 (file)
    missingok
    notifempty
    compress
+   postrotate
+      if [ -d /run/systemd/system ]; then
+          /bin/systemctl reload syslog-ng.service >/dev/null
+         sleep 5
+      else
+          /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
+      fi
+   endscript
 }
 
 /var/log/debug {
    postrotate
       if [ -d /run/systemd/system ]; then
           /bin/systemctl reload syslog-ng.service >/dev/null
+         sleep 5
       else
           /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
       fi