Date: Mon, 20 Aug 2007 16:24:16 -0700 (PDT)
From: Doug Barton <dougb@FreeBSD.org>
To: =?iso-8859-15?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc: rc@freebsd.org
Subject: Re: ${name}_user / ${name}_group
Message-ID: <alpine.BSF.0.999.0708201623220.17908@qbhto.arg>
In-Reply-To: <86tzqtewep.fsf@ds4.des.no>
References: <86tzqtewep.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.0.999.0708201623220.17908>
