Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jul 2016 00:49:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 207811] service -e doesn't show all enabled services
Message-ID:  <bug-207811-8-5ul0qX9lPc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207811-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207811-8@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Jason Unovitch <junovitch@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |junovitch@freebsd.org,
                   |                            |zi@FreeBSD.org

--- Comment #2 from Jason Unovitch <junovitch@freebsd.org> ---
Add isc-dhcp maintainer to CC.

This is because the isc-dhcp script uses parameter expansion to strip the isc-
off of $name.  See below from a 'sh -x /usr/sbin/service -e'.  Note that 'eval
name' fails because $name is still defined as whatever service was before it.

...
+ echo $'foreman_proxy_enable=\'YES\''
+ eval $'foreman_proxy_enable=\'YES\''
+ foreman_proxy_enable=YES
+ checkyesno foreman_proxy_enable
+ echo /usr/local/etc/rc.d/isc-dhcpd
/usr/local/etc/rc.d/isc-dhcpd
+ grep -q ^rcvar /usr/local/etc/rc.d/isc-dhcpd6
+ grep '^name=' /usr/local/etc/rc.d/isc-dhcpd6
+ eval 'name=${name##*/isc-}'
+ name=foreman_proxy
...

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207811-8-5ul0qX9lPc>