packages: dhcp_probe/dhcp_probe.init - make it work

baggins baggins at pld-linux.org
Fri Apr 20 14:08:31 CEST 2012


Author: baggins                      Date: Fri Apr 20 12:08:30 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- make it work

---- Files affected:
packages/dhcp_probe:
   dhcp_probe.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/dhcp_probe/dhcp_probe.init
diff -u packages/dhcp_probe/dhcp_probe.init:1.1 packages/dhcp_probe/dhcp_probe.init:1.2
--- packages/dhcp_probe/dhcp_probe.init:1.1	Fri Apr 20 13:41:22 2012
+++ packages/dhcp_probe/dhcp_probe.init	Fri Apr 20 14:08:25 2012
@@ -42,6 +42,7 @@
 		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 @@
 	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 @@
 	stop
 	;;
   status)
-	status
+	status_f
 	;;
   restart|force-reload)
-	restart
+	stop
+	start
 	;;
   reload)
 	reload	
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/dhcp_probe/dhcp_probe.init?r1=1.1&r2=1.2



More information about the pld-cvs-commit mailing list