aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-10-30 08:34:53 +0100
committerGitHub <noreply@github.com>2019-10-30 08:34:53 +0100
commit8b9704ab4d4854595d6876bdfdfd1bbe835fbb88 (patch)
tree8391247740cfb83c54517260de131cbf5bdb645b
parent98af69a625d583eb0caf1f9b26f698e852e0eab9 (diff)
downloadinitscripts-8b9704ab4d4854595d6876bdfdfd1bbe835fbb88.tar
initscripts-8b9704ab4d4854595d6876bdfdfd1bbe835fbb88.tar.gz
initscripts-8b9704ab4d4854595d6876bdfdfd1bbe835fbb88.tar.bz2
initscripts-8b9704ab4d4854595d6876bdfdfd1bbe835fbb88.tar.xz
initscripts-8b9704ab4d4854595d6876bdfdfd1bbe835fbb88.zip
network: don't fail with IFDOWN_ON_SHUTDOWN
Resolve rhbz#1738578
-rwxr-xr-xetc/rc.d/init.d/network4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/init.d/network b/etc/rc.d/init.d/network
index 581fd018..45632cc9 100755
--- a/etc/rc.d/init.d/network
+++ b/etc/rc.d/init.d/network
@@ -180,8 +180,8 @@ stop)
# as such in sysconfig
if is_false "$IFDOWN_ON_SHUTDOWN"; then
if systemctl is-system-running | grep -q 'stopping'; then
- net_log $"system is shutting down, leaving interfaces up as requested"
- exit 1
+ net_log $"system is shutting down, leaving interfaces up as requested" info
+ exit 0
fi
fi