]> git.pld-linux.org Git - packages/coda.git/commitdiff
- LSB conformance changes
authorankry <ankry@pld-linux.org>
Tue, 20 May 2003 21:29:13 +0000 (21:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    coda.auth2.init -> 1.4
    coda.codasrv.init -> 1.5
    coda.update.init -> 1.5
    coda.venus.init -> 1.5

coda.auth2.init
coda.codasrv.init
coda.update.init
coda.venus.init

index d0dec2c0656f3a76d7fb35a8f57d08deaa3f2703..d81fa1c4bd968212cf7babfcb4a5a6c236379a08 100644 (file)
@@ -23,17 +23,17 @@ else
        exit 0
 fi
 
+RETVAL=0
 case "$1" in
   start)
        # Check if the service is already running?
-       if [ -f /var/lock/subsys/auth2 ]; then
-               msg_already_running auth2
-               exit 1
-       else
+       if [ ! -f /var/lock/subsys/auth2 ]; then
                msg_starting auth2
                daemon auth2
                RETVAL=$?
                [ RETVAL -eq 0 ] && touch /var/lock/subsys/auth2
+       else
+               msg_already_running auth2
        fi
        ;;
   stop)
@@ -43,20 +43,21 @@ case "$1" in
                rm -f /var/lock/subsys/auth2
        else
                msg_not_running auth2
-               exit 1
        fi
        ;;
   status)
+       status auth2
+       exit $?
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
        ;;
 esac
 
 exit $RETVAL
-
index 9074d04698522ef13d39d401f3f189cb70303156..3eca4841acd1213fa24c8bb6f346dfaec146087a 100644 (file)
@@ -23,18 +23,18 @@ else
        exit 0
 fi
 
+RETVAL=0
 case "$1" in
   start)
        # Check if the service is already running?
-       if [ -f /var/lock/subsys/codasrv ]; then
-               msg_already_running codasrv
-               exit 1
-       else
+       if [ ! -f /var/lock/subsys/codasrv ]; then
                msg_starting codasrv
                startserver >/dev/null 2>&1 &
-               ok
                RETVAL=$?
+               ok
                [ RETVAL -eq 0 ] && touch /var/lock/subsys/codasrv
+       else
+               msg_already_running codasrv
        fi
        ;;
   stop)
@@ -48,25 +48,23 @@ case "$1" in
                while [ -f /var/lib/vice/srv/pid ]; do
                        sleep 1
                done
-               deltext
                ok
                rm -f /var/lock/subsys/codasrv
        else
                msg_not_running codasrv
-               exit 1
        fi
        ;;
   status)
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
        ;;
 esac
 
 exit $RETVAL
-
index d4ba044507a77f7922014cf24abb028942e2c30a..7b5c8983b5638f4a4675fb0414fba6e9d3b10a2a 100644 (file)
@@ -23,21 +23,23 @@ else
        exit 0
 fi
 
+RETVAL=0
 case "$1" in
   start)
        # Check if the service is already running?
-       if [ -f /var/lock/subsys/update ]; then
-               msg_already_running update
-               exit 1
-       else
+       if [ ! -f /var/lock/subsys/update ]; then
                msg_starting rpc2portmap
                daemon rpc2portmap
+               RETVAL=$?
                msg_starting updatesrv
                daemon updatesrv
+               [ RETVAL -eq 0 ] && RETVAL=$?
                msg_starting updateclnt
                daemon updateclnt -h `cat /var/lib/vice/db/scm`
-               RETVAL=$?
+               [ RETVAL -eq 0 ] && RETVAL=$?
                [ RETVAL -eq 0 ] && touch /var/lock/subsys/update
+       else
+               msg_already_running update
        fi
        ;;
   stop)
@@ -51,18 +53,18 @@ case "$1" in
                rm -f /var/lock/subsys/update
        else
                msg_not_running update
-               exit 1
        fi
        ;;
   status)
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
        ;;
 esac
 
index 56d08f413650d1f2196860edfc2bce7318f1a258..fcba5fa7a6f6db26cb9d41c5ddf823c2be5d0f04 100644 (file)
@@ -23,20 +23,19 @@ else
        exit 0
 fi
 
+RETVAL=0
 case "$1" in
        start)
        # Check if the service is already running?
-       if [ -f /var/lock/subsys/venus ]; then
-               msg_already_running venus
-               exit 1
-       else
+       if [ ! -f /var/lock/subsys/venus ]; then
                msg_starting venus
                busy
                venus &
-               deltext
-               ok
                RETVAL=$?
+               ok
                [ RETVAL -eq 0 ] && touch /var/lock/subsys/venus
+       else
+               msg_already_running venus
        fi
        ;;
        stop)
@@ -47,20 +46,19 @@ case "$1" in
                rm -f /var/lock/subsys/venus
        else
                msg_not_running venus
-               exit 1
        fi
        ;;
   status)
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
        ;;
 esac
 
 exit $RETVAL
-
This page took 0.121417 seconds and 4 git commands to generate.