]> git.pld-linux.org Git - packages/arpwatch.git/commitdiff
script to start/stop arpwatch daemon
authorArtur Frysiak <artur@frysiak.net>
Wed, 17 Feb 1999 01:21:51 +0000 (01:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arpwatch.init -> 1.1

arpwatch.init [new file with mode: 0644]

diff --git a/arpwatch.init b/arpwatch.init
new file mode 100644 (file)
index 0000000..5a117cd
--- /dev/null
@@ -0,0 +1,44 @@
+#! /bin/sh
+#
+# chkconfig: - 55 45
+# description: The arpwatch daemon attempts to keep track of ethernet/ip \
+#              address pairings.
+# processname: arpwatch
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Get config.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+if [ ${NETWORKING} = "no" ]
+then
+       exit 0
+fi
+
+# See how we were called.
+case "$1" in
+  start)
+       show Starting arpwatch:
+       daemon arpwatch
+       touch /var/lock/subsys/arpwatch
+       ;;
+  stop)
+       show Stopping arpwatch: 
+       killproc arpwatch
+       rm -f /var/lock/subsys/arpwatch
+       ;;
+  status)
+       status arpwatch
+       ;;
+  restart|reload)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       echo "Usage: arpwatch {start|stop|status|restart|reload}"
+       exit 1
+esac
+
+exit 0
This page took 0.103832 seconds and 4 git commands to generate.