projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "remove double slashes on metadata.ftp-master.debian.org"
[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
2204713
..
2714307
100644
(file)
--- a/
modules/syslog-ng/files/syslog-ng.logrotate
+++ b/
modules/syslog-ng/files/syslog-ng.logrotate
@@
-119,6
+119,10
@@
daily
compress
postrotate
- /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
+ 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
}