${name}_user / ${name}_group
Doug Barton
dougb at FreeBSD.org
Mon Aug 20 16:50:59 PDT 2007
On Mon, 20 Aug 2007, Dag-Erling Smørgrav wrote:
> Varnish (www/varnish in ports) uses -u / -g on the command line to
> specify a user / group the child process should run as. I'd like to
> allow the user to configure these as varnishd_user / varnishd_group in
> rc.conf. However, ${name}_user and ${name}_group are magic in rc.subr;
> it interprets them as a user / group to su to before starting / killing
> ${name}_program.
>
> Is there any way I can work around this, other than 'unset _user _group'
> after load_rc_config?
No. However, you could use _[ug]id, which is what I did for named, and
hasn't seemed to cause anyone confusion.
hth,
Doug
--
This .signature sanitized for your protection
More information about the freebsd-rc
mailing list