[Pkg-sympa-commits] [sympa] 02/06: Fix a bug with logrotate when sympa is reloaded with systemd (#804066)
Emmanuel Bouthenot
kolter at moszumanska.debian.org
Wed Sep 28 21:09:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
kolter pushed a commit to branch master
in repository sympa.
commit 7055bd825616c99a1851e3f7a133e895ef8506a4
Author: Emmanuel Bouthenot <kolter at openics.org>
Date: Wed Sep 28 21:28:41 2016 +0200
Fix a bug with logrotate when sympa is reloaded with systemd (#804066)
---
debian/sympa.logrotate | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/debian/sympa.logrotate b/debian/sympa.logrotate
index 23d9aa1..2a7ca96 100644
--- a/debian/sympa.logrotate
+++ b/debian/sympa.logrotate
@@ -1,13 +1,17 @@
/var/log/sympa.log {
- missingok
- notifempty
- rotate 7
- size=100k
- compress
- delaycompress
- create 640 sympa adm
- postrotate
- invoke-rc.d --quiet sympa reload > /dev/null
- invoke-rc.d --quiet rsyslog rotate > /dev/null || true
- endscript
+ missingok
+ notifempty
+ rotate 52
+ size=100k
+ compress
+ delaycompress
+ create 640 sympa adm
+ postrotate
+ if [ -e /proc/1/exe ] && readlink -f /proc/1/exe | grep -q 'systemd' ; then
+ systemctl try-reload-or-restart sympa
+ else
+ invoke-rc.d --quiet sympa reload > /dev/null
+ fi
+ invoke-rc.d --quiet rsyslog rotate > /dev/null || true
+ endscript
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sympa.git
More information about the Pkg-sympa-commits
mailing list