]> git.pld-linux.org Git - packages/arpwatch.git/blobdiff - arpwatch.init
- removed all Group fields translations (oure rpm now can handle translating
[packages/arpwatch.git] / arpwatch.init
index 7a7bb716e20d9f9fb9f10571af962352a02e4d67..e45a10072261c5c5e3eb310a80a5938e6f36f5bf 100644 (file)
@@ -3,8 +3,7 @@
 # chkconfig: 345 55 45
 # description: The arpwatch daemon attempts to keep track of ethernet/ip \
 #              address pairings.
-# processname: arpwatch
-
+# processname: arpwatch
 
 # Source function library
 . /etc/rc.d/init.d/functions
@@ -17,7 +16,7 @@
 
 # Check that networking is up.
 if [ "${NETWORKING}" = "no" ]; then
-       msg_Network_Down "arpwatch"
+       msg_network_down "arpwatch"
        exit 1
 fi
 
@@ -33,24 +32,23 @@ case "$1" in
                          |sed 's/[0-9]*: \([a-zA-Z0-9]*\)[@:].*/\1/'|xargs`"
                fi
                for IFC in $INTERFACES; do
-                       msg_stopping "arpwatch"
-                       touch /var/state/arpwatch/$IFC.dat
-                       daemon arpwatch -i $IFC -f /var/state/arpwatch/$IFC.dat
+                       msg_starting "arpwatch ($IFC)"
+                       touch /var/lib/arpwatch/$IFC.dat
+                       daemon arpwatch -i $IFC -f /var/lib/arpwatch/$IFC.dat
                        RETVAL=$?
                        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/arpwatch
                done
        else
-               msg_Already_Running "arpwatch"
+               msg_already_running "arpwatch"
        fi
        ;;
   stop)
-       rm -f /var/lock/subsys/arpwatch
        if [ -f /var/lock/subsys/arpwatch ]; then
                msg_stopping "arpwatch"
                killproc arpwatch
                rm -f /var/lock/subsys/arpwatch >/dev/null 2>&1
        else
-               msg_Not_Running "arpwatch"
+               msg_not_running "arpwatch"
                exit 1
        fi      
        ;;
@@ -62,7 +60,7 @@ case "$1" in
        $0 start
        ;;
   *)
-       msg_Usage "$0 {start|stop|status|restart|reload}"
+       msg_usage "$0 {start|stop|status|restart|reload}"
        exit 1
 esac
 
This page took 0.077013 seconds and 4 git commands to generate.