diff options
author | allanjude <allanjude@FreeBSD.org> | 2015-09-08 20:22:51 +0000 |
---|---|---|
committer | allanjude <allanjude@FreeBSD.org> | 2015-09-08 20:22:51 +0000 |
commit | 7f8c7d805b32475b4f4c00be4facc9ba65430a07 (patch) | |
tree | ed71c756a9d265ee7a6525c594939571d1ce18a8 /usr.sbin/service | |
parent | b0320b8bf106c0a348a5c0030fbe33ba566dcc5c (diff) | |
download | FreeBSD-src-7f8c7d805b32475b4f4c00be4facc9ba65430a07.zip FreeBSD-src-7f8c7d805b32475b4f4c00be4facc9ba65430a07.tar.gz |
service(8) -e does not respect /etc/rc.conf.d/* entries
PR: 173454
Submitted by: giantlock@gmail.com (original patch)
Approved by: bapt (mentor)
MFC after: 1 week
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3600
Diffstat (limited to 'usr.sbin/service')
-rwxr-xr-x | usr.sbin/service/service.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/service/service.sh b/usr.sbin/service/service.sh index b5fd607..96d993a 100755 --- a/usr.sbin/service/service.sh +++ b/usr.sbin/service/service.sh @@ -71,6 +71,7 @@ if [ -n "$RESTART" ]; then if grep -q ^rcvar $file; then eval `grep ^name= $file` eval `grep ^rcvar $file` + load_rc_config_var ${name} ${rcvar} checkyesno $rcvar 2>/dev/null && run_rc_script ${file} stop fi done @@ -100,6 +101,7 @@ if [ -n "$ENABLED" ]; then if grep -q ^rcvar $file; then eval `grep ^name= $file` eval `grep ^rcvar $file` + load_rc_config_var ${name} ${rcvar} checkyesno $rcvar 2>/dev/null && echo $file fi done |