aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-14 13:40:08 +0200
committerDee'Kej <deekej@linuxmail.org>2018-05-17 14:28:50 +0200
commit3f178ab90d8b06f0396c9580b7886de1e2a92b49 (patch)
tree0ad5fc6c0816e8db6f8b1d4dd3189527cdb8f2fa
parentdefacdbdbdec39eb62b166cca02f266647819b28 (diff)
downloadinitscripts-3f178ab90d8b06f0396c9580b7886de1e2a92b49.tar
initscripts-3f178ab90d8b06f0396c9580b7886de1e2a92b49.tar.gz
initscripts-3f178ab90d8b06f0396c9580b7886de1e2a92b49.tar.bz2
initscripts-3f178ab90d8b06f0396c9580b7886de1e2a92b49.tar.xz
initscripts-3f178ab90d8b06f0396c9580b7886de1e2a92b49.zip
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.
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth4
1 files changed, 2 insertions, 2 deletions
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