cvs commit: ports/www/fcgiwrap Makefile ports/www/fcgiwrap/files
fcgiwrap.in
Doug Barton
dougb at FreeBSD.org
Tue Nov 30 19:44:46 UTC 2010
On 11/30/2010 02:55, Baptiste Daroussin wrote:
> 2010/11/29 Doug Barton<dougb at 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/
More information about the cvs-all
mailing list