[dm-devel] multipath-tools/multipathd multipathd.init.redhat

bmarzins at sourceware.org bmarzins at sourceware.org
Mon Jul 23 22:15:11 UTC 2007


CVSROOT:	/cvs/dm
Module name:	multipath-tools
Branch: 	RHEL4_FC5
Changes by:	bmarzins at sourceware.org	2007-07-23 22:15:11

Modified files:
	multipathd     : multipathd.init.redhat 

Log message:
	Fix for bz #242724. init script now meets guidelines, and cannot exit early
	on status cmd.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/multipathd.init.redhat.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.2.2.1&r2=1.2.2.2

--- multipath-tools/multipathd/multipathd.init.redhat	2007/04/30 18:07:26	1.2.2.1
+++ multipath-tools/multipathd/multipathd.init.redhat	2007/07/23 22:15:11	1.2.2.2
@@ -22,7 +22,6 @@
 	. $initdir/functions
 fi
  
-test -x $DAEMON || exit 0
 test -r $sysconfig/$prog && . $sysconfig/$prog
 
 RETVAL=0
@@ -32,6 +31,7 @@
 #
 
 start() {
+	test -x $DAEMON || exit 5
 	echo -n $"Starting $prog daemon: "
 	daemon $DAEMON
 	RETVAL=$?
@@ -84,7 +84,7 @@
 	;;
 *)
 	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
-	RETVAL=1
+	RETVAL=3
 esac
 
 exit $RETVAL




More information about the dm-devel mailing list