After rotating log files, sleep a few seconds
[mirror/dsa-puppet.git] / modules / syslog_ng / files / syslog-ng.logrotate
index 895a2cd..fd9c92b 100644 (file)
@@ -28,6 +28,7 @@
    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
    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