[Supervisor-checkins] r881 - initscripts

Mike Naberezny mike at maintainable.com
Mon Aug 10 21:47:53 EDT 2009


Author: Mike Naberezny <mike at maintainable.com>
Date: Mon Aug 10 21:47:52 2009
New Revision: 881

Log:
Don't require PIDFILE to be executable. Patch by Jordi Funollet.

Modified:
   initscripts/debian-norrgard

Modified: initscripts/debian-norrgard
==============================================================================
--- initscripts/debian-norrgard	(original)
+++ initscripts/debian-norrgard	Mon Aug 10 21:47:52 2009
@@ -49,7 +49,7 @@
 	#   0 if daemon has been started
 	#   1 if daemon was already running
 	#   2 if daemon could not be started
-        [ -x $PIDFILE ] && return 1
+        [ -e $PIDFILE ] && return 1
 
 	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
 		$DAEMON_ARGS \
@@ -69,7 +69,7 @@
 	#   1 if daemon was already stopped
 	#   2 if daemon could not be stopped
 	#   other if a failure occurred
-        [ -x $PIDFILE ] || return 1
+        [ -e $PIDFILE ] || return 1
 
 	# Stop all processes under supervisord control.
 	supervisorctl stop all


More information about the Supervisor-checkins mailing list