Date: Tue, 30 Nov 2010 11:44:43 -0800 From: Doug Barton <dougb@FreeBSD.org> To: Baptiste Daroussin <bapt@freebsd.org> 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 Message-ID: <4CF5542B.7010906@FreeBSD.org> In-Reply-To: <AANLkTik77DAX-KYguuF0GUi--Qs1QjgqUWZpZKQq95Sh@mail.gmail.com> References: <201011291147.oATBl8EK023858@repoman.freebsd.org> <4CF3F11D.4080203@FreeBSD.org> <AANLkTik77DAX-KYguuF0GUi--Qs1QjgqUWZpZKQq95Sh@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/30/2010 02:55, Baptiste Daroussin wrote: > 2010/11/29 Doug Barton<dougb@freebsd.org>: >> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CF5542B.7010906>