mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
If a service is running, make 'stop' work even if ${name}_enable
is not set. PR: conf/130414 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de> Reviewed by: freebsd-rc@
This commit is contained in:
parent
5d0848e9c6
commit
d52bba9301
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206686
@ -646,12 +646,12 @@ run_rc_command()
|
||||
if [ "$_elem" != "$rc_arg" ]; then
|
||||
continue
|
||||
fi
|
||||
# if ${rcvar} is set, and $1 is not
|
||||
# "rcvar", then run
|
||||
# if ${rcvar} is set, $1 is not "rcvar"
|
||||
# and ${rc_pid} is not set, then run
|
||||
# checkyesno ${rcvar}
|
||||
# and return if that failed
|
||||
#
|
||||
if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" ]; then
|
||||
if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a -z "${rc_pid}" ]; then
|
||||
if ! checkyesno ${rcvar}; then
|
||||
if [ -n "${rc_quiet}" ]; then
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user