From a61a406d685c2c268c3b8071979883ffcaff2dc0 Mon Sep 17 00:00:00 2001 From: ankry Date: Fri, 2 May 2003 23:38:06 +0000 Subject: [PATCH] - updated 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 | 48 ++++++++++++++++++--------------- coda.codasrv.init | 68 +++++++++++++++++++++++++---------------------- coda.update.init | 65 +++++++++++++++++++++++--------------------- coda.venus.init | 56 ++++++++++++++++++++------------------ 4 files changed, 126 insertions(+), 111 deletions(-) diff --git a/coda.auth2.init b/coda.auth2.init index a355eb0..9ac3eca 100644 --- a/coda.auth2.init +++ b/coda.auth2.init @@ -15,37 +15,41 @@ # 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 diff --git a/coda.codasrv.init b/coda.codasrv.init index cc5b63b..23b0623 100644 --- a/coda.codasrv.init +++ b/coda.codasrv.init @@ -15,47 +15,51 @@ # 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 diff --git a/coda.update.init b/coda.update.init index 326f8b8..75d2df2 100644 --- a/coda.update.init +++ b/coda.update.init @@ -15,48 +15,51 @@ # 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 - diff --git a/coda.venus.init b/coda.venus.init index afbe62b..d397c13 100644 --- a/coda.venus.init +++ b/coda.venus.init @@ -15,41 +15,45 @@ # 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 -- 2.44.0