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:
parent
1280b97749
commit
5bfebbecea
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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=
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user