Package: nagios-nrpe
Version: 2.12-5
Severity: important
Tags: patch

This bug was originally reported in Ubuntu here:

https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/896388

The restart action fails because start-stop-daemon is not using the
--retry argument.

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-2-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Author: nutznboltz <[email protected]>
Bug-Ubuntu: http://pad.lv/896388

=== modified file 'debian/changelog'
--- debian/changelog	2011-10-18 15:09:21 +0000
+++ debian/changelog	2011-11-25 20:05:28 +0000
@@ -1,3 +1,9 @@
+nagios-nrpe (2.12-5ubuntu2) precise; urgency=low
+
+  * Fixing regression caused by bug 600941. (LP: #896388)
+
+ -- nutznboltz <[email protected]>  Fri, 25 Nov 2011 14:51:26 -0500
+
 nagios-nrpe (2.12-5ubuntu1) precise; urgency=low
 
   * Merge with Debian; remaining changes:

=== modified file 'debian/nagios-nrpe-server.init'
--- debian/nagios-nrpe-server.init	2011-10-18 15:09:21 +0000
+++ debian/nagios-nrpe-server.init	2011-11-25 20:05:28 +0000
@@ -59,14 +59,12 @@
 	;;
   stop)
 	log_daemon_msg "Stopping $DESC" "$NAME"
-    start-stop-daemon --stop --quiet --oknodo --pidfile $PIDDIR/nrpe.pid
+	start-stop-daemon --stop --quiet --oknodo --pidfile $PIDDIR/nrpe.pid --retry 15
 	log_end_msg $?
-    #sometimes deleting the pidfile fails. cleanup afterwards.
-    test -e $PIDDIR/nrpe.pid && rm $PIDDIR/nrpe.pid
 	;;
   reload|force-reload)
 	log_daemon_msg "Reloading $DESC configuration files" "$NAME"
-    start-stop-daemon --stop --signal HUP --quiet --pidfile $PIDDIR/nrpe.pid
+	start-stop-daemon --stop --signal HUP --quiet --pidfile $PIDDIR/nrpe.pid
 	log_end_msg $?
 	;;
   status)

Reply via email to