packages: dhcp_probe/dhcp_probe.init, dhcp_probe/dhcp_probe.spec - kill lef...

baggins baggins at pld-linux.org
Sat Apr 21 17:52:56 CEST 2012


Author: baggins                      Date: Sat Apr 21 15:52:56 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- kill leftover processes in sysv init script

---- Files affected:
packages/dhcp_probe:
   dhcp_probe.init (1.2 -> 1.3) , dhcp_probe.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/dhcp_probe/dhcp_probe.init
diff -u packages/dhcp_probe/dhcp_probe.init:1.2 packages/dhcp_probe/dhcp_probe.init:1.3
--- packages/dhcp_probe/dhcp_probe.init:1.2	Fri Apr 20 14:08:25 2012
+++ packages/dhcp_probe/dhcp_probe.init	Sat Apr 21 17:52:50 2012
@@ -45,6 +45,14 @@
 		msg_stopping "dhcp_probe on $nic"
 		killproc --pidfile /var/run/dhcp_probe.$nic.pid dhcp_probe
 	done
+	# kill leftovers if an interface was removed from $INTERFACES
+	for file in /var/run/dhcp_probe*pid ; do
+		nic=${file##/var/run/dhcp_probe.}
+		nic=${nic%%pid}
+		[ -z "$nic" ] && nic="unknown interface"
+		msg_stopping "dhcp_probe on $nic"
+		killproc --pidfile $file dhcp_probe
+	done
 	rm -f /var/lock/subsys/dhcp_probe >/dev/null 2>&1
 }
 

================================================================
Index: packages/dhcp_probe/dhcp_probe.spec
diff -u packages/dhcp_probe/dhcp_probe.spec:1.6 packages/dhcp_probe/dhcp_probe.spec:1.7
--- packages/dhcp_probe/dhcp_probe.spec:1.6	Sat Apr 21 13:42:13 2012
+++ packages/dhcp_probe/dhcp_probe.spec	Sat Apr 21 17:52:50 2012
@@ -2,7 +2,7 @@
 Summary:	Tool for discovering DHCP and BootP servers
 Name:		dhcp_probe
 Version:	1.3.0
-Release:	0.6
+Release:	0.7
 License:	GPLv2+ and MIT
 Group:		Applications
 Source0:	http://www.net.princeton.edu/software/dhcp_probe/%{name}-%{version}.tar.gz
@@ -105,6 +105,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2012/04/21 15:52:50  baggins
+- kill leftover processes in sysv init script
+
 Revision 1.6  2012/04/21 11:42:13  baggins
 - install/remove dhcp_probe.target
 
================================================================

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



More information about the pld-cvs-commit mailing list