3 # icmpdnd This shell script takes care of starting and stopping
7 # description: icmpdnd ICMP Domain Name responder daemon for Linux
9 # pidfile: /var/run/icmpdnd.pid
11 # Source function library.
12 . /etc/rc.d/init.d/functions
14 # Source networking configuration.
15 [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
17 # Source icmpdn configureation.
18 if [ -f /etc/sysconfig/icmpdnd ] ; then
19 . /etc/sysconfig/icmpdnd
22 # Check that networking is up.
23 [ "${NETWORKING}" = "no" ] && exit 0
25 [ -f /usr/sbin/icmpdnd ] || exit 0
31 echo -n $"Starting $prog: "
32 daemon /usr/sbin/icmpdnd $ICMPDND_OPTS
35 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/icmpdnd
40 echo -n $"Shutting down $prog: "
44 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/icmpdnd
48 # See how we were called.
62 if [ -f /var/lock/subsys/icmpdnd ]; then
73 echo $"Usage: $0 {start|stop|restart|condrestart|status}"