Displaying 1 result from an estimated 1 matches for "dhclientpid".
2010 Jul 13
1
[PATCH node] Kill persistent dhclient on the temporary interface
.../ovirt-early
+++ b/scripts/ovirt-early
@@ -43,6 +43,9 @@ configure_ovirt_management_nic() {
log "Using interface $DEVICE"
# setup temporary interface to retrieve configuration
/sbin/dhclient $1
+ # save dhclient PID for killing it later
+ dhclientPid=$( /sbin/pidof dhclient )
+
fi
if [ $? -eq 0 ]; then
# from network-scripts/ifup-post
@@ -97,7 +100,9 @@ configure_ovirt_management_nic() {
log "Default config applied"
fi
- service network restart
+ service network stop
+ /bin/kill...