3 # cancd cancd short service description
5 # chkconfig: 2345 29 20
7 # description: This is the CA NetConsole Daemon, \
8 # a daemon to receive output from the Linux netconsole driver.
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/cancd ] && . /etc/sysconfig/cancd
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network ]; then
24 msg_network_down cancd
32 # See how we were called.
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/cancd ]; then
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cancd
42 msg_already_running cancd
46 if [ -f /var/lock/subsys/cancd ]; then
50 rm -f /var/lock/subsys/cancd
65 msg_usage "$0 {start|stop|restart|force-reload|status}"
71 # This must be last line !