7 # description: The Coda update server and clients
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
16 # Check that networking is up
17 if is_yes "${NETWORKING}"; then
18 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
19 msg_network_down update
29 # Check if the service is already running?
30 if [ ! -f /var/lock/subsys/update ]; then
31 msg_starting rpc2portmap
34 msg_starting updatesrv
37 [ RETVAL -eq 0 ] && RETVAL=$RET
38 msg_starting updateclnt
39 daemon updateclnt -h `cat /var/lib/vice/db/scm`
41 if [ RETVAL -eq 0 ] && RETVAL=$RET
42 [ RETVAL -eq 0 ] && touch /var/lock/subsys/update
44 msg_already_running update
48 if [ -f /var/lock/subsys/update ]; then
49 msg_stopping updateclnt
51 msg_stopping updatesrv
53 msg_stopping rpc2portmap
55 rm -f /var/lock/subsys/update
57 msg_not_running update
68 msg_usage "$0 {start|stop|restart|force-reload|status}"