[uWSGI] restart uWSGI processes

Roberto De Ioris roberto at unbit.it
Mon Jan 4 20:46:59 CET 2010

> How do you tell which one is the master process ?

A hack could be:

ps eo comm,pid,ppid,sid

then choose the one with the same sid and ppid.

If you run uWSGI as a daemon you can simply choose the one with '1' as the

A more elegant way is to read the uWSGI log (it prints the various pids).

The "right" way (waiting for the 'remote management' targeted at 0.9.5)
would be writing a pidfile at server startup that you can use as source
for your scripts. i will add it tomorrow.

What do you think about the "phusion passenger" way of reloading processes
simply writing (or touching) a file ? I find it a bit "in-elegant" but
probably could be useful for some environments.

Roberto De Ioris


More information about the uWSGI mailing list