runscript: move verbose mode setting near debug setting
This commit is contained in:
parent
d032b17897
commit
de60ffeebe
@ -185,6 +185,10 @@ status()
|
|||||||
}
|
}
|
||||||
|
|
||||||
yesno $RC_DEBUG && set -x
|
yesno $RC_DEBUG && set -x
|
||||||
|
if yesno "${rc_verbose:-$RC_VERBOSE}"; then
|
||||||
|
EINFO_VERBOSE=yes
|
||||||
|
export EINFO_VERBOSE
|
||||||
|
fi
|
||||||
|
|
||||||
_conf_d=${RC_SERVICE%/*}/../conf.d
|
_conf_d=${RC_SERVICE%/*}/../conf.d
|
||||||
# If we're net.eth0 or openvpn.work then load net or openvpn config
|
# If we're net.eth0 or openvpn.work then load net or openvpn config
|
||||||
@ -208,12 +212,6 @@ sourcex -e "@SYSCONFDIR@/rc.conf"
|
|||||||
# Apply any ulimit defined
|
# Apply any ulimit defined
|
||||||
[ -n "${rc_ulimit:-$RC_ULIMIT}" ] && ulimit ${rc_ulimit:-$RC_ULIMIT}
|
[ -n "${rc_ulimit:-$RC_ULIMIT}" ] && ulimit ${rc_ulimit:-$RC_ULIMIT}
|
||||||
|
|
||||||
# Set verbose mode
|
|
||||||
if yesno "${rc_verbose:-$RC_VERBOSE}"; then
|
|
||||||
EINFO_VERBOSE=yes
|
|
||||||
export EINFO_VERBOSE
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Apply cgroups settings if defined
|
# Apply cgroups settings if defined
|
||||||
if [ "$1" = "start" ] ; then
|
if [ "$1" = "start" ] ; then
|
||||||
if [ "$(command -v cgroup_add_service)" = "cgroup_add_service" ]; then
|
if [ "$(command -v cgroup_add_service)" = "cgroup_add_service" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user