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-07-24 15:52:11 +0200
commit8f42fe8dfb7dd6c3c4c2e551237e0d8ea023620b (patch)
tree0fd8fb5bf37b4dedd0ec6c5cba500830d80ed0ae
parentaad057530d5df51b5bf38f17e9ad2e1ae3dc9790 (diff)
downloadinitscripts-8f42fe8dfb7dd6c3c4c2e551237e0d8ea023620b.tar
initscripts-8f42fe8dfb7dd6c3c4c2e551237e0d8ea023620b.tar.gz
initscripts-8f42fe8dfb7dd6c3c4c2e551237e0d8ea023620b.tar.bz2
initscripts-8f42fe8dfb7dd6c3c4c2e551237e0d8ea023620b.tar.xz
initscripts-8f42fe8dfb7dd6c3c4c2e551237e0d8ea023620b.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 040d52d8..b45c6226 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 "/var/run/dhclient$VER-${DEVICE}.pid" ]; then
dhcpid=$(cat /var/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