Rename shutdown_network setting to keep_network

We were telling users that setting shutdown_network=YES would shut down
the network interfaces during shutdown, but this was exactly the
opposite of what we were doing. The default was YES, which was keeping
the interfaces active.

This keeps the default behavior, but renames the setting to keep_network
which more accurately describes its function, and instructs users to set
it to NO if they want the network interfaces to go down.
This commit is contained in:
William Hubbs 2013-02-11 09:45:14 -06:00
parent 1280b97749
commit 5bfebbecea
5 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
# You also have ifup_eth0 and ifdown_eth0 to run other commands when
# eth0 is started and stopped.
# You should note that we don't stop the network at system shutdown by default.
# If you really need this, then set shutdown_network=YES
# If you really need this, then set keep_network=NO
# Lastly, the interfaces variable pulls in virtual interfaces that cannot
# be automatically detected.

View File

@ -442,4 +442,4 @@
#}
# You should note that we don't stop the network at system shutdown by default.
# If you really need this, then set shutdown_network=YES
# If you really need this, then set keep_network=NO

View File

@ -1244,4 +1244,4 @@
#}
# You should note that we don't stop the network at system shutdown by default.
# If you really need this, then set shutdown_network=YES
# If you really need this, then set keep_network=NO

View File

@ -712,7 +712,7 @@ stop()
# Don't stop the network at shutdown.
# We don't use the noshutdown keyword so that we are started again
# correctly if we go back to multiuser.
yesno ${shutdown_network:-YES} && yesno $RC_GOINGDOWN && return 0
yesno ${keep_network:-YES} && yesno $RC_GOINGDOWN && return 0
local IFACE=${RC_SVCNAME#*.} module=
local IFVAR=$(shell_var "${IFACE}") opts=

View File

@ -323,7 +323,7 @@ stop()
# Don't stop the network at shutdown.
# We don't use the noshutdown keyword so that we are started again
# correctly if we go back to multiuser.
yesno ${shutdown_network:-YES} && yesno $RC_GOINGDOWN && return 0
yesno ${keep_network:-YES} && yesno $RC_GOINGDOWN && return 0
local int= intv= cmd= downcmd= r=
einfo "Stopping network"