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

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207811

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 i=
sc-
off of $name.  See below from a 'sh -x /usr/sbin/service -e'.  Note that 'e=
val
name' fails because $name is still defined as whatever service was before i=
t.

...
+ echo $'foreman_proxy_enable=3D\'YES\''
+ eval $'foreman_proxy_enable=3D\'YES\''
+ foreman_proxy_enable=3DYES
+ 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=3D' /usr/local/etc/rc.d/isc-dhcpd6
+ eval 'name=3D${name##*/isc-}'
+ name=3Dforeman_proxy
...

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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