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_no "${NETWORKING}"; then
18 msg_network_down update
24 # Check if the service is already running?
25 if [ -f /var/lock/subsys/update ]; then
26 msg_already_running update
29 msg_starting rpc2portmap
31 msg_starting updatesrv
33 msg_starting updateclnt
34 daemon updateclnt -h `cat /var/lib/vice/db/scm`
36 [ RETVAL -eq 0 ] && touch /var/lock/subsys/update
40 if [ -f /var/lock/subsys/update ]; then
41 msg_stopping updateclnt
43 msg_stopping updatesrv
45 msg_stopping rpc2portmap
47 rm -f /var/lock/subsys/update
49 msg_not_running update
60 msg_usage "$0 {start|stop|restart|reload|status}"