]> git.pld-linux.org Git - packages/coda.git/commitdiff
- updated
authorankry <ankry@pld-linux.org>
Fri, 2 May 2003 23:38:06 +0000 (23:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    coda.auth2.init -> 1.2
    coda.codasrv.init -> 1.3
    coda.update.init -> 1.3
    coda.venus.init -> 1.3

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

index a355eb0d9b18b43668800bfffec08d01ee9fe436..9ac3eca813eea93ad90b25a304eefd70d168626d 100644 (file)
 
 # Check that networking is up
 if is_no "${NETWORKING}"; then
-    msg_network_down auth2
-    exit 1
+       msg_network_down auth2
+       exit 1
 fi
 
 case "$1" in
-    start)
-        # Check if the service is already running?
+  start)
+       # Check if the service is already running?
        if [ -f /var/lock/subsys/auth2 ]; then
-           msg_already_running auth2
+               msg_already_running auth2
+               exit 1
        else
-           msg_starting auth2
-           daemon auth2
-           RETVAL=$?
-           [ RETVAL -eq 0 ] && touch /var/lock/subsys/auth2
+               msg_starting auth2
+               daemon auth2
+               RETVAL=$?
+               [ RETVAL -eq 0 ] && touch /var/lock/subsys/auth2
        fi
-        ;;
-    stop)
-        if [ -f /var/lock/subsys/auth2 ]; then
-           msg_stopping auth2
-           killproc auth2
-           rm -f /var/lock/subsys/auth2
+       ;;
+  stop)
+       if [ -f /var/lock/subsys/auth2 ]; then
+               msg_stopping auth2
+               killproc auth2
+               rm -f /var/lock/subsys/auth2
        else
-           msg_Not_Running auth2
+               msg_not_running auth2
+               exit 1
        fi
-        ;;
-    restart)
-        $0 stop
+       ;;
+  status)
+       ;;
+  restart|reload)
+       $0 stop
        $0 start
-        ;;
-    *)
-        msg_usage "$0 {start|stop|restart}"
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|reload|status}"
        exit 1
        ;;
 esac
index cc5b63baee28b6421c4c4d9d2df556b54f68ee6f..23b062315b3b6d58e06ad428d6be39a53e76a619 100644 (file)
 
 # Check that networking is up
 if is_no "${NETWORKING}"; then
-    msg_network_down codasrv
-    exit 1
+       msg_network_down codasrv
+       exit 1
 fi
 
 case "$1" in
-    start)
-        # Check if the service is already running?
+  start)
+       # Check if the service is already running?
        if [ -f /var/lock/subsys/codasrv ]; then
-           msg_already_running codasrv
+               msg_already_running codasrv
+               exit 1
        else
-           msg_starting codasrv
-           startserver >/dev/null 2>&1 &
-           ok
-           RETVAL=$?
-           [ RETVAL -eq 0 ] && touch /var/lock/subsys/codasrv
+               msg_starting codasrv
+               startserver >/dev/null 2>&1 &
+               ok
+               RETVAL=$?
+               [ RETVAL -eq 0 ] && touch /var/lock/subsys/codasrv
        fi
-        ;;
-    stop)
-        if [ -f /var/lock/subsys/codasrv ]; then
-           msg_stopping codasrv
-           busy
-           volutil shutdown >/dev/null 2>&1
-           ok
-           show "Waiting for Coda server shutdown"
-           busy
-           while [ -f /var/lib/vice/srv/pid ]; do
-               sleep 1
-           done
-           deltext
-           ok
-           rm -f /var/lock/subsys/codasrv
+       ;;
+  stop)
+       if [ -f /var/lock/subsys/codasrv ]; then
+               msg_stopping codasrv
+               busy
+               volutil shutdown >/dev/null 2>&1
+               ok
+               show "Waiting for Coda server shutdown"
+               busy
+               while [ -f /var/lib/vice/srv/pid ]; do
+                       sleep 1
+               done
+               deltext
+               ok
+               rm -f /var/lock/subsys/codasrv
        else
-           msg_Not_Running codasrv
+               msg_not_running codasrv
+               exit 1
        fi
-        ;;
-    restart)
-        $0 stop
+       ;;
+  status)
+       ;;
+  restart|reload)
+       $0 stop
        $0 start
-        ;;
-    *)
-        msg_usage "$0 {start|stop|restart}"
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|reload|status}"
        exit 1
        ;;
 esac
index 326f8b846ea9cc1cb82cc1ce687dc5a02b9af2ed..75d2df23927a3bf5488179736700b799f9fdb193 100644 (file)
 
 # Check that networking is up
 if is_no "${NETWORKING}"; then
-    msg_network_down update
-    exit 1
+       msg_network_down update
+       exit 1
 fi
 
 case "$1" in
-    start)
-        # Check if the service is already running?
+  start)
+       # Check if the service is already running?
        if [ -f /var/lock/subsys/update ]; then
-           msg_already_running update
+               msg_already_running update
+               exit 1
        else
-           msg_starting rpc2portmap
-           daemon rpc2portmap
-           msg_starting updatesrv
-           daemon updatesrv
-           msg_starting updateclnt
-           daemon updateclnt -h `cat /var/lib/vice/db/scm`
-           RETVAL=$?
-           [ RETVAL -eq 0 ] && touch /var/lock/subsys/update
+               msg_starting rpc2portmap
+               daemon rpc2portmap
+               msg_starting updatesrv
+               daemon updatesrv
+               msg_starting updateclnt
+               daemon updateclnt -h `cat /var/lib/vice/db/scm`
+               RETVAL=$?
+               [ RETVAL -eq 0 ] && touch /var/lock/subsys/update
        fi
-        ;;
-    stop)
-        if [ -f /var/lock/subsys/update ]; then
-           msg_stopping updateclnt
-           killproc updateclnt
-           msg_stopping updatesrv
-           killproc updatesrv
-           msg_stopping rpc2portmap
-           killproc rpc2portmap
-           rm -f /var/lock/subsys/update
+       ;;
+  stop)
+       if [ -f /var/lock/subsys/update ]; then
+               msg_stopping updateclnt
+               killproc updateclnt
+               msg_stopping updatesrv
+               killproc updatesrv
+               msg_stopping rpc2portmap
+               killproc rpc2portmap
+               rm -f /var/lock/subsys/update
        else
-           msg_Not_Running update
+               msg_not_running update
+               exit 1
        fi
-        ;;
-    restart)
-        $0 stop
+       ;;
+  status)
+       ;;
+  restart|reload)
+       $0 stop
        $0 start
-        ;;
-    *)
-        msg_usage "$0 {start|stop|restart}"
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|reload|status}"
        exit 1
        ;;
 esac
 
 exit $RETVAL
-
index afbe62b15dc17f001eb5160fdc62c07b220d3580..d397c137cd56558a8b97cffadca979864a4f6f7a 100644 (file)
 
 # Check that networking is up
 if is_no "${NETWORKING}"; then
-    msg_network_down Venus
-    exit 1
+       msg_network_down Venus
+       exit 1
 fi
 
 case "$1" in
-    start)
-        # Check if the service is already running?
+       start)
+       # Check if the service is already running?
        if [ -f /var/lock/subsys/venus ]; then
-           msg_already_running venus
+               msg_already_running venus
+               exit 1
        else
-           msg_starting venus
-           busy
-           venus &
-           deltext
-           ok
-           RETVAL=$?
-           [ RETVAL -eq 0 ] && touch /var/lock/subsys/venus
+               msg_starting venus
+               busy
+               venus &
+               deltext
+               ok
+               RETVAL=$?
+               [ RETVAL -eq 0 ] && touch /var/lock/subsys/venus
        fi
-        ;;
-    stop)
-        if [ -f /var/lock/subsys/venus ]; then
-           msg_stopping venus
-           killproc venus
-           umount /coda
-           rm -f /var/lock/subsys/venus
+       ;;
+       stop)
+       if [ -f /var/lock/subsys/venus ]; then
+               msg_stopping venus
+               killproc venus
+               umount /coda
+               rm -f /var/lock/subsys/venus
        else
-           msg_Not_Running venus
+               msg_not_running venus
+               exit 1
        fi
-        ;;
-    restart)
-        $0 stop
+       ;;
+  status)
+       ;;
+  restart|reload)
+       $0 stop
        $0 start
-        ;;
-    *)
-        msg_usage "$0 {start|stop|restart}"
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|reload|status}"
        exit 1
        ;;
 esac
This page took 0.183465 seconds and 4 git commands to generate.