Quick and dirty adaption of the debian startup file
authorChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 25 May 2011 12:04:35 +0000 (14:04 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 25 May 2011 12:04:35 +0000 (14:04 +0200)
For the pidfile is no longer created.

multipathd/multipathd.init.debian

index f1e2de0..ed23b5b 100644 (file)
@@ -2,25 +2,19 @@
 
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 DAEMON=/usr/bin/multipathd
-PIDFILE=/var/run/multipathd.pid
 
 test -x $DAEMON || exit 0
 
 case "$1" in
   start)
        echo -n "Starting multipath daemon: multipathd"
-        $DAEMON
+       $DAEMON
        echo "."
        ;;
   stop)
        echo -n "Stopping multipath daemon: multipathd"
        echo "."
-       if [ -f $PIDFILE ]
-       then
-               kill `cat $PIDFILE`
-       else
-               echo "multipathd not running: Nothing to stop..."
-       fi
+       $DAEMON shutdown
        ;;
   force-reload|restart)
        $0 stop