bin/173454: service(8) does not respect /etc/rc.conf.d/name

Denis Generalov gd at
Wed Nov 7 22:40:01 UTC 2012

>Number:         173454
>Category:       bin
>Synopsis:       service(8) does not respect /etc/rc.conf.d/name
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 07 22:40:00 UTC 2012
>Originator:     Denis Generalov
>Release:        FreeBSD 9.0-STABLE amd64
FreeBSD 9.0-STABLE FreeBSD 9.0-STABLE #1: Tue Feb 14 22:57:58 MSK 2012     root at  amd64
service does not looks at /etc/rc.conf.d/name when generates enabled services list
put <servicename>_enable="YES" or <servicename>_enable="NO" in /etc/rc.conf.d/<servicename> and run service -e
patch attached

Patch attached with submission follows:

--- usr.sbin/service/	2012-11-08 02:24:20.000000000 +0400
+++ usr.sbin/service/	2012-11-08 02:27:09.000000000 +0400
@@ -71,7 +71,9 @@
 		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
+			unset ${rcvar}
 	exit 0


More information about the freebsd-bugs mailing list