diff options
author | Mike Snitzer <snitzer@redhat.com> | 2009-04-17 18:07:59 -0400 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@free.fr> | 2009-04-20 00:10:45 +0200 |
commit | ef717271923b2e28e3bf8bc697d554592808cbcc (patch) | |
tree | 270c1ca80e1a5d364140a615f89a037ef461d4c7 /multipathd | |
parent | 5806a0c7c4fb18865e612cad850d597e71ec0f7f (diff) | |
download | multipath-tools-ef717271923b2e28e3bf8bc697d554592808cbcc.tar.gz multipath-tools-ef717271923b2e28e3bf8bc697d554592808cbcc.tar.bz2 multipath-tools-ef717271923b2e28e3bf8bc697d554592808cbcc.zip |
multipath-tools: update multipathd.init.redhat
Various small improvements to Red Hat's multipathd initscript.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'multipathd')
-rw-r--r-- | multipathd/multipathd.init.redhat | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/multipathd/multipathd.init.redhat b/multipathd/multipathd.init.redhat index 4664212..ee776f0 100644 --- a/multipathd/multipathd.init.redhat +++ b/multipathd/multipathd.init.redhat @@ -1,13 +1,16 @@ #!/bin/bash - -# -# /etc/rc.d/init.d/multipathd # -# Starts the multipath daemon +# multipathd Starts the multipath daemon # # chkconfig: - 13 87 -# description: Manage device-mapper multipath devices -# processname: multipathd +# description: Manages device-mapper multipath devices + +### BEGIN INIT INFO +# Provides: multipathd +# Short-Description: Control multipathd +# Description: This service monitors and manages +# device-mapper multipath devices +### END INIT INFO DAEMON=/sbin/multipathd prog=`basename $DAEMON` @@ -16,14 +19,8 @@ lockdir=/var/lock/subsys sysconfig=/etc/sysconfig -system=redhat - -if [ $system = redhat ]; then - # Source function library. - . $initdir/functions -fi +. $initdir/functions -test -x $DAEMON || exit 0 test -r $sysconfig/$prog && . $sysconfig/$prog RETVAL=0 @@ -33,6 +30,7 @@ RETVAL=0 # start() { + test -x $DAEMON || exit 5 echo -n $"Starting $prog daemon: " daemon $DAEMON RETVAL=$? @@ -68,13 +66,13 @@ start) stop) stop ;; -reload) +force-reload|reload) reload ;; restart) restart ;; -condrestart) +condrestart|try-restart) if [ -f $lockdir/$prog ]; then restart fi @@ -85,7 +83,7 @@ status) ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}" - RETVAL=1 + RETVAL=2 esac exit $RETVAL |