- LSB compliance
authorankry <ankry@pld-linux.org>
Sat, 17 May 2003 21:03:35 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bootparamd.init -> 1.6

bootparamd.init

index 36156b8..b0535b2 100644 (file)
@@ -23,6 +23,7 @@ else
        exit 0
 fi
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -32,13 +33,9 @@ case "$1" in
                daemon rpc.bootparamd
                touch /var/lock/subsys/rpc.bootparamd
                RETVAL=$?
-               if [ $RETVAL -eq 0 ]; then
-                       touch /var/lock/subsys/rpc.bootparamd
-                       RETVAL=1
-               fi
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.bootparamd
        else
                msg_already_running rpc.bootparamd
-               exit 1
        fi
        ;;
   stop)
@@ -48,19 +45,20 @@ case "$1" in
                rm -f /var/lock/subsys/rpc.bootparamd >/dev/null 2>&1
        else
                msg_not_running rpc.bootparamd
-               exit 1
        fi      
        ;;
   status)
        status rpc.bootparamd
+       exit $?
        ;;
-  reload|restart|force-reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
        ;;
 esac
 
This page took 0.055308 seconds and 4 git commands to generate.