[uWSGI] Writing pidfile after graceful reloading
Roberto De Ioris
roberto at unbit.it
Fri Jul 9 08:54:31 CEST 2010
Il giorno 08/lug/2010, alle ore 08.06, Leonid Borisenko ha scritto:
> Hello.
>
> I run uWSGI under not root uid/gid (for example, 33/33). Right after
> starting uWSGI in init.d script I change owner, group and permissions on
> uWSGI pidfile to root:root, 644.
>
> After graceful reloading (kill -HUP <uWSGI pid>), uWSGI tries to write
> the pidfile, failed at it (because of permissions) and immediately exits.
>
> But (as I see) PID of master uWSGI doesn't changes, so it hadn't to
> write the pidfile. Am I right? Could uWSGI behaviour be changed to skip
> writing the pidfile after graceful reloading?
>
Yes, i think it is a good proposal.
I will apply it asap.
--
Roberto De Ioris
http://unbit.it
JID: roberto at jabber.unbit.it
More information about the uWSGI
mailing list