emmett-framework / granian

A Rust HTTP server for Python applications
BSD 3-Clause "New" or "Revised" License
2.93k stars 86 forks source link

Implement --pid #319

Closed aersam closed 5 months ago

aersam commented 6 months ago

Hi guys

Thanks for having created granian, it's a great thing!

There's of course always potential for improvement, here's something I miss from gunicorn:

Not sure I find the time to implement this, especially as I'm not a UNIX pro, but I could give it a try if no one wants to do this

gi0baro commented 6 months ago

Just to clarify: Granian already supports HUP signal to gracefully restart workers.

The --pid option sounds legit and easy to implement, targeting this for next minor.

stefins commented 5 months ago

I can work on this!