3 # cvslockd This shell script takes care of starting and stopping cvslockd.
5 # chkconfig: 2345 80 30
6 # description: cvslockd is a cvs locking server
8 # processname: cvslockd
12 # Source function library.
13 . /etc/rc.d/init.d/functions
15 # Source oident configureation.
16 if [ -f /etc/sysconfig/cvslockd ]; then
17 . /etc/sysconfig/cvslockd
22 if [ ! -f /var/lock/subsys/cvslockd ]; then
26 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cvslockd
28 msg_already_running cvslockd
34 if [ -f /var/lock/subsys/cvslockd ]; then
37 rm -f /var/lock/subsys/cvslockd >/dev/null 2>&1
39 msg_not_running cvslockd
44 # See how we were called.
61 # msg_reloading cvslockd
62 # killproc cvslockd -HUP
65 msg_usage "$0 {start|stop|restart|force-reload|status}"