]> git.pld-linux.org Git - packages/bootparamd.git/commitdiff
- 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 36156b8c3da8a5a3c2b14695e7d5be88c9cf1e76..b0535b2dbf5178bad868f3b7501a07702c9d6222 100644 (file)
@@ -23,6 +23,7 @@ else
        exit 0
 fi
 
        exit 0
 fi
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
 # 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=$?
                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
        else
                msg_already_running rpc.bootparamd
-               exit 1
        fi
        ;;
   stop)
        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
                rm -f /var/lock/subsys/rpc.bootparamd >/dev/null 2>&1
        else
                msg_not_running rpc.bootparamd
-               exit 1
        fi      
        ;;
   status)
        status rpc.bootparamd
        fi      
        ;;
   status)
        status rpc.bootparamd
+       exit $?
        ;;
        ;;
-  reload|restart|force-reload)
+  restart|force-reload)
        $0 stop
        $0 start
        $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
 
        ;;
 esac
 
This page took 0.19676 seconds and 4 git commands to generate.