projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
postgres-make-base-backups: resist running as root
[mirror/dsa-puppet.git]
/
modules
/
syslog_ng
/
files
/
syslog-ng.logrotate
diff --git
a/modules/syslog_ng/files/syslog-ng.logrotate
b/modules/syslog_ng/files/syslog-ng.logrotate
index
2714307
..
fd9c92b
100644
(file)
--- a/
modules/syslog_ng/files/syslog-ng.logrotate
+++ b/
modules/syslog_ng/files/syslog-ng.logrotate
@@
-25,6
+25,14
@@
missingok
notifempty
compress
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 {
}
/var/log/debug {
@@
-121,6
+129,7
@@
postrotate
if [ -d /run/systemd/system ]; then
/bin/systemctl reload syslog-ng.service >/dev/null
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
else
/usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
fi