# 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
# 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
# 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
-
# 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