[Bug 207811] service -e doesn't show all enabled services

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 1 00:49:04 UTC 2016


Jason Unovitch <junovitch at freebsd.org> changed:

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

--- Comment #2 from Jason Unovitch <junovitch at 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
+ 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 on the CC list for the bug.

More information about the freebsd-amd64 mailing list