]> git.pld-linux.org Git - packages/dhcp_probe.git/commitdiff
- make it work
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 20 Apr 2012 12:08:25 +0000 (12:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dhcp_probe.init -> 1.2

dhcp_probe.init

index c7f41eb67c6a7b9a0e23162de1db66a08c591284..4a5c1f2fd5ba6ae4298f59ddd146c0fe63d9f267 100644 (file)
@@ -42,6 +42,7 @@ stop() {
                return
        fi
        for nic in $INTERFACES; do
+               msg_stopping "dhcp_probe on $nic"
                killproc --pidfile /var/run/dhcp_probe.$nic.pid dhcp_probe
        done
        rm -f /var/lock/subsys/dhcp_probe >/dev/null 2>&1
@@ -53,9 +54,9 @@ reload(){
        done
 }
 
-status() {
+status_f() {
        for nic in $INTERFACES; do
-               status --pidfile /var/run/dhcp_probe.$nic.pid dhcp_probe -HUP
+               status --pidfile /var/run/dhcp_probe.$nic.pid "dhcp_probe on $nic"
        done
 }
 
@@ -78,10 +79,11 @@ case "$1" in
        stop
        ;;
   status)
-       status
+       status_f
        ;;
   restart|force-reload)
-       restart
+       stop
+       start
        ;;
   reload)
        reload  
This page took 0.16007 seconds and 4 git commands to generate.