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
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 # Source oident configureation.
14 if [ -f /etc/sysconfig/cvslockd ]; then
15 . /etc/sysconfig/cvslockd
20 if [ -f /var/lock/subsys/cvslockd ]; then
21 msg_already_running "cvslockd"
25 msg_starting "cvslockd"
26 daemon /usr/bin/cvslockd
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cvslockd
33 if [ ! -f /var/lock/subsys/cvslockd ]; then
34 msg_not_running "cvslockd"
38 msg_stopping "cvslockd"
40 rm -f /var/lock/subsys/cvslockd >/dev/null 2>&1
44 if [ ! -f /var/lock/subsys/cvslockd ]; then
45 msg_not_running "cvslockd"
55 # See how we were called.
78 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"