From owner-freebsd-questions@FreeBSD.ORG Thu Aug 17 13:42:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC5516A4E1 for ; Thu, 17 Aug 2006 13:42:34 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4839543D49 for ; Thu, 17 Aug 2006 13:42:31 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GDi87-0004dP-0Y for freebsd-questions@freebsd.org; Thu, 17 Aug 2006 15:41:51 +0200 Received: from rrcs-24-172-172-84.central.biz.rr.com ([24.172.172.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Aug 2006 15:41:51 +0200 Received: from calvin by rrcs-24-172-172-84.central.biz.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Aug 2006 15:41:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Calvin Hendryx-Parker Date: Thu, 17 Aug 2006 09:41:09 -0400 Lines: 26 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: rrcs-24-172-172-84.central.biz.rr.com User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) Sender: news Subject: rc.subr options conflict with one another X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 13:42:34 -0000 I stumbled upon a bug that I wanted to run by the list first before submitting it to the bugs list. If you create a start script and use rc.subr with both of these variables set in your script you won't get the desired effect. ${name}_user="myuser" start_cmd="${command} start" The first argument will start the command using su if you aren't using chroot, and the second one will allow you to override the default method for start for example. When you use the start_cmd or any of the argument_cmd variable the su command will not be used to start your daemon. Does this look like a valid bug or am I missing something? Thanks, Calvin -- S i x F e e t U p , I n c . | "Nowhere to go but open source" Silicon Valley: +1 (650) 401-8579 x602 Midwest: +1 (317) 861-5948 x602 Toll-Free: 1-866-SIX-FEET mailto:cparker@sixfeetup.com http://www.sixfeetup.com | Zope/Plone Dedicated Hosting from $35/month