4 # description: The arpwatch daemon attempts to keep track of ethernet/ip \
6 # processname: arpwatch
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
16 [ -f /etc/sysconfig/arpwatch ] && . /etc/sysconfig/arpwatch
18 # Check that networking is up.
19 [ "${NETWORKING}" = "no" ] && echo "Error: Networking is down" && exit 0
22 # See how we were called.
25 # Check if the service is already running?
26 if [ ! -f /var/lock/subsys/arpwatch ]; then
27 show Starting arpwatch
30 echo "arpwatch already is running"
32 touch /var/lock/subsys/arpwatch
35 show Stopping arpwatch
37 rm -f /var/lock/subsys/arpwatch
47 echo "Usage: $0 {start|stop|status|restart|reload}"