Skip to content

Gunicorn and systemd socket with a runner (like uv) #3358

Answered by pajod
RemiDesgrange asked this question in Q&A
Discussion options

You must be logged in to vote

This is normal, applications are supposed to check whether the passed fds are intended "for them", see:
https://github.com/systemd/systemd/blob/104587314ff25a5c35390eeb42308f083e1e0488/src/libsystemd/sd-daemon/sd-daemon.c#L57

If your wrapper does not do this for you after fork, try fixing up your environ["LISTEN_PID"] yourself, in gunicorn.conf.py?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RemiDesgrange
Comment options

Answer selected by RemiDesgrange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants