- LSB conformance
authorankry <ankry@pld-linux.org>
Wed, 21 May 2003 11:52:35 +0000 (11:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    davfs.init -> 1.5

davfs.init

index 300cac0..0e9185b 100644 (file)
@@ -28,7 +28,7 @@ else
        exit 0
 fi
 
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -40,7 +40,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/davfsd
        else
                msg_already_running davfsd
-               exit 1
        fi
        ;;
   stop)
@@ -50,25 +49,30 @@ case "$1" in
                rm -f /var/run/davfsd.pid /var/lock/subsys/davfsd >/dev/null 2>&1
        else
                msg_not_running davfsd
-               exit 1
        fi
        ;;
   restart)
        $0 stop
        $0 start
+       exit $?
        ;;
   status)
        status davfsd
        exit $?
        ;;
-  reload)
-       msg_reloading davfsd
-       killproc davfsd -HUP
-       RETVAL=$?
+  reload|force-reload)
+       if [ -f /var/lock/subsys/davfsd ]; then
+               msg_reloading davfsd
+               killproc davfsd -HUP
+               RETVAL=$?
+       else
+               msg_not_running davfsd >&2
+               exit 7
+       fi
        ;;
   *)
-       msg_usage "$0 {start|stop|init|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|init|restart|reload|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.096722 seconds and 4 git commands to generate.