[uWSGI] pidfile

Daniel Geržo danger at rulez.sk
Tue Jul 27 21:30:09 CEST 2010


Hello guys,

I am a maintainer of the uwsgi's port in the FreeBSD operating system. 
While working on some new things related to this application (rc.d 
script) I have came across the following problem.

I think that there's a little issue with the writing of the pid file. I 
believe that the pid file should be written prior to the suid/sgid()ing 
to the user provided by --uid and --gid flags, so that it is possible to 
write the pid file for example to /var/run (which is default location on 
several systems).

I also believe that the permissions of the pid file should not be 666.

And another thing which would be nice is to support user/group-names 
passed to --uid/gid flags.

-- 
S pozdravom / Best regards
   Daniel Gerzo


More information about the uWSGI mailing list