aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-08-05 16:26:48 +0200
committerGitHub <noreply@github.com>2019-08-05 16:26:48 +0200
commitef845072f2a96e2360e224e1c58601c38c6e7014 (patch)
tree57e0820e71ec398ce55fc782f9a8b0c6887cda95
parentf595623dd4f4e98179f207ab17ea6cb8bfd61843 (diff)
downloadinitscripts-ef845072f2a96e2360e224e1c58601c38c6e7014.tar
initscripts-ef845072f2a96e2360e224e1c58601c38c6e7014.tar.gz
initscripts-ef845072f2a96e2360e224e1c58601c38c6e7014.tar.bz2
initscripts-ef845072f2a96e2360e224e1c58601c38c6e7014.tar.xz
initscripts-ef845072f2a96e2360e224e1c58601c38c6e7014.zip
network: don't fail with IFDOWN_ON_SHUTDOWN (#269)
-rwxr-xr-xrc.d/init.d/network4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 1edb9884..e20062c1 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -176,8 +176,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