[Pkg-nagios-changes] [pkg-icinga2] 01/01: Add the PIDFile setting to the systemd unit file
Gunnar Beutner
shroud-guest at moszumanska.debian.org
Fri Mar 6 21:28:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
shroud-guest pushed a commit to branch master
in repository pkg-icinga2.
commit bbd41071e2d37de1dc2ffc5bc74845fcb319ab33
Author: Gunnar Beutner <gunnar at beutner.name>
Date: Fri Mar 6 22:24:40 2015 +0100
Add the PIDFile setting to the systemd unit file
Without the PIDFile setting 'service icinga2 reload' fails
because systemd doesn't realize that icinga2's PID has changed
and assumes that it has died and destroys the entire cgroup.
---
debian/icinga2-common.icinga2.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/icinga2-common.icinga2.service b/debian/icinga2-common.icinga2.service
index a33dab4..8dac46e 100644
--- a/debian/icinga2-common.icinga2.service
+++ b/debian/icinga2-common.icinga2.service
@@ -7,6 +7,7 @@ Type=simple
ExecStartPre=/usr/lib/icinga2/prepare-dirs /usr/lib/icinga2/icinga2
ExecStart=/usr/sbin/icinga2 daemon
ExecReload=/bin/kill -HUP $MAINPID
+PIDFile=/run/icinga2/icinga2.pid
[Install]
WantedBy=multi-user.target
--
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