Skip to content
Discussion options

You must be logged in to vote

Do not mix gunicorns own permission/uid fiddling with systemd. If you launch via systemd, let systemd handle all of that.
(the example in https://docs.gunicorn.org/en/latest/deploy.html#systemd does this.. but I guess it does not do a very good job at explaining so.)

  1. Do not manually chmod, let systemd manage directories via RuntimeDirectory=, StateDirectory=, CacheDirectory=, .. and RuntimeDirectoryMode=, .. - if you need any at all.
  2. SocketMode=0660 is fine
  3. Yes that is OK (and not necessarily matching socket user is good thing for privilege separation)
  4. Not needed with system socket activation
  5. Not needed with system socket activation

Which means that a) runtime data of the application an…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benoitc
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