[Pkg-nagios-changes] [pkg-icinga2] 01/02: Use kill -USR1 instead of service.
Alexander Wirt
formorer at debian.org
Tue Mar 10 09:42:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
formorer pushed a commit to branch master
in repository pkg-icinga2.
commit 57d4676288fd32f3464f056a54eefd0ecd74d525
Author: Alexander Wirt <formorer at debian.org>
Date: Tue Mar 10 10:29:04 2015 +0100
Use kill -USR1 instead of service.
---
debian/patches/logrotate_use_service | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/debian/patches/logrotate_use_service b/debian/patches/logrotate_use_service
index 99edb95..9d206c9 100644
--- a/debian/patches/logrotate_use_service
+++ b/debian/patches/logrotate_use_service
@@ -1,13 +1,16 @@
--- a/etc/logrotate.d/icinga2.cmake
+++ b/etc/logrotate.d/icinga2.cmake
-@@ -9,8 +9,8 @@
+@@ -9,8 +9,11 @@
create 644 @ICINGA2_USER@ @ICINGA2_GROUP@
copytruncate
postrotate
- if ! killall -q -USR1 icinga2; then
- exit 1
-+ if service icinga2 status > /dev/null; then
-+ service icinga2 reload > /dev/null
++ if service icinga2 status > /dev/null; then
++ if [ -e @ICINGA2_RUNDIR@/icinga2/icinga2.pid ]
++ then
++ kill -USR1 $(cat @ICINGA2_RUNDIR@/icinga2/icinga2.pid)
++ fi
fi
endscript
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icinga2.git
More information about the Pkg-nagios-changes
mailing list