From owner-cvs-ports@FreeBSD.ORG Tue Nov 30 19:44:46 2010 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 767921065674 for ; Tue, 30 Nov 2010 19:44:46 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id F41E58FC1B for ; Tue, 30 Nov 2010 19:44:45 +0000 (UTC) Received: (qmail 7080 invoked by uid 399); 30 Nov 2010 19:44:45 -0000 Received: from localhost (HELO doug-optiplex.ka9q.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 30 Nov 2010 19:44:45 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4CF5542B.7010906@FreeBSD.org> Date: Tue, 30 Nov 2010 11:44:43 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101028 Thunderbird/3.1.6 MIME-Version: 1.0 To: Baptiste Daroussin References: <201011291147.oATBl8EK023858@repoman.freebsd.org> <4CF3F11D.4080203@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-ports@freebsd.org, cvs-all@freebsd.org, ports-committers@freebsd.org Subject: Re: cvs commit: ports/www/fcgiwrap Makefile ports/www/fcgiwrap/files fcgiwrap.in X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2010 19:44:46 -0000 On 11/30/2010 02:55, Baptiste Daroussin wrote: > 2010/11/29 Doug Barton: >> Your solution is fine, however if you supply "root" as a default value for >> _user then you could simplify it down to: >> >> start_precmd="install -d -o $fcgiwrap_user -m 755 /var/run/fcgiwrap" >> >> (Or use whatever value of -m is appropriate.) >> > > This is great but this solution make problem when fcgiwrap_user is > change by the user because after stop fcgiwrap.pid is left behind with > 700 value for the rights so it can't be overwritten. > > The solution is to rm the pidfile on stop_postcmd but I don't know if > we are "allowed" to do that. Yes, there are a lot of ports that do that. I've actually had it in mind to add the feature to rc.subr, but the ideal solution of course is for the process to clean up after itself ... Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/