]> git.pld-linux.org Git - packages/dhcp_probe.git/commitdiff
- kill leftover processes in sysv init script
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 21 Apr 2012 15:52:50 +0000 (15:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dhcp_probe.init -> 1.3
    dhcp_probe.spec -> 1.7

dhcp_probe.init
dhcp_probe.spec

index 4a5c1f2fd5ba6ae4298f59ddd146c0fe63d9f267..b1f12db0ff006cb24c85e1ac621f65596204f4b6 100644 (file)
@@ -45,6 +45,14 @@ stop() {
                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 957ae9f09374141a6b8fe9ddfdf1734ed3ca13f6..8988d129fc830bdab55b099f75bf98d6e0c9f186 100644 (file)
@@ -1,7 +1,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
This page took 0.176207 seconds and 4 git commands to generate.