From owner-freebsd-rc@FreeBSD.ORG Mon Aug 20 23:50:59 2007 Return-Path: Delivered-To: rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5BE616A417 for ; Mon, 20 Aug 2007 23:50:59 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with SMTP id 63E8F13C45E for ; Mon, 20 Aug 2007 23:50:59 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 13980 invoked by uid 399); 20 Aug 2007 23:24:18 -0000 Received: from localhost (HELO slave.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 20 Aug 2007 23:24:18 -0000 X-Originating-IP: 127.0.0.1 Date: Mon, 20 Aug 2007 16:24:16 -0700 (PDT) From: Doug Barton To: =?iso-8859-15?Q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: <86tzqtewep.fsf@ds4.des.no> Message-ID: References: <86tzqtewep.fsf@ds4.des.no> X-message-flag: Outlook -- Not just for spreading viruses anymore! X-OpenPGP-Key-ID: 0xD5B2F0FB Organization: http://www.FreeBSD.org/ MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1946426456-1187652258=:17908" Cc: rc@freebsd.org Subject: Re: ${name}_user / ${name}_group X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 23:50:59 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1946426456-1187652258=:17908 Content-Type: TEXT/PLAIN; format=flowed; charset=iso-8859-15 Content-Transfer-Encoding: 8BIT 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 --0-1946426456-1187652258=:17908--