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
23 msg_already_running "cvslockd"
27 msg_starting "cvslockd"
28 daemon /usr/bin/cvslockd
30 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cvslockd
35 if [ ! -f /var/lock/subsys/cvslockd ]; then
36 msg_not_running "cvslockd"
40 msg_stopping "cvslockd"
42 rm -f /var/lock/subsys/cvslockd >/dev/null 2>&1
46 if [ ! -f /var/lock/subsys/cvslockd ]; then
47 msg_not_running "cvslockd"
57 # See how we were called.
80 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"