[Pkg-nagios-changes] [pkg-icinga2] 01/03: Use service instead of killall in logrotate snippet

Alexander Wirt formorer at debian.org
Mon Mar 9 12:52:24 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 739d013eca578674f7d476d64571f477b28fe364
Author: Alexander Wirt <formorer at debian.org>
Date:   Mon Mar 9 13:49:55 2015 +0100

    Use service instead of killall in logrotate snippet
    
    Closes: #778892
---
 debian/patches/logrotate_use_service | 13 +++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 14 insertions(+)

diff --git a/debian/patches/logrotate_use_service b/debian/patches/logrotate_use_service
new file mode 100644
index 0000000..99edb95
--- /dev/null
+++ b/debian/patches/logrotate_use_service
@@ -0,0 +1,13 @@
+--- a/etc/logrotate.d/icinga2.cmake
++++ b/etc/logrotate.d/icinga2.cmake
+@@ -9,8 +9,8 @@
+        	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
+ 		fi
+        	endscript
+ }
diff --git a/debian/patches/series b/debian/patches/series
index e1c16fd..d7dc1ab 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+logrotate_use_service
 21_config_changes

-- 
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