>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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 07 22:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Denis Generalov
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
Rambler
>Environment:
FreeBSD tyl.rambler.ramblermedia.com 9.0-STABLE FreeBSD 9.0-STABLE #1: Tue Feb 
14 22:57:58 MSK 2012     [email protected]:/usr/obj/usr/src/sys/GENERIC 
 amd64
>Description:
service does not looks at /etc/rc.conf.d/name when generates enabled services 
list
>How-To-Repeat:
put <servicename>_enable="YES" or <servicename>_enable="NO" in 
/etc/rc.conf.d/<servicename> and run service -e
>Fix:
patch attached

Patch attached with submission follows:

--- usr.sbin/service/service.sh.orig    2012-11-08 02:24:20.000000000 +0400
+++ usr.sbin/service/service.sh 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}
                fi
        done
        exit 0


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to