From 3f178ab90d8b06f0396c9580b7886de1e2a92b49 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Mon, 14 May 2018 13:40:08 +0200 Subject: ifdown-eth: no longer needed 'pidof -x dhclient' condition removed Previously, there were 2 additional conditions related to this part of code, but they were removed in time, so this last condition has remained an artifact and is de-facto obsolete. However, the 'pidof -x dhclient' condition could cause the network service to hang on stop/restart when processes were executed from a network share... Removing that condition should hypothetically fix it. --- sysconfig/network-scripts/ifdown-eth | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth index 932dd882..97b17aaf 100755 --- a/sysconfig/network-scripts/ifdown-eth +++ b/sysconfig/network-scripts/ifdown-eth @@ -86,7 +86,7 @@ fi /etc/sysconfig/network-scripts/ifdown-ipv6 ${CONFIG} retcode=0 -[ -n "$(pidof -x dhclient)" ] && { + for VER in "" 6 ; do if [ -f "/run/dhclient$VER-${DEVICE}.pid" ]; then dhcpid=$(cat /run/dhclient$VER-${DEVICE}.pid) @@ -105,7 +105,7 @@ for VER in "" 6 ; do fi fi done -} + # we can't just delete the configured address because that address # may have been changed in the config file since the device was # brought up. Flush all addresses associated with this -- cgit v1.2.1