[Bug 1038139] Re: Missing running check on init script

Serge Hallyn 1038139 at bugs.launchpad.net
Tue Sep 23 17:05:52 UTC 2014


Updated init patch which I'll be pushing.

--- haproxy.old	2014-09-22 10:52:07.599718882 +0000
+++ haproxy.new	2014-09-22 10:51:34.815653158 +0000
@@ -46,7 +46,9 @@
 		return 0
 	fi
 	for pid in $(cat $PIDFILE) ; do
-		/bin/kill $pid || return 4
+                if kill -0 $pid 2>/dev/null; then
+		    /bin/kill $pid || return 4
+                fi
 	done
 	rm -f $PIDFILE
 	return 0

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1038139

Title:
  Missing running check on init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1038139/+subscriptions



More information about the Ubuntu-server-bugs mailing list