diff options
| author | Sören Tempel <soeren+git@soeren-tempel.net> | 2026-05-19 16:20:46 +0200 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2026-05-26 18:43:22 +0200 |
| commit | 056de157b2101d18222ee6dd5eff09f0798f7156 (patch) | |
| tree | 6abb308859a6a2a0855247493003e5cccfb1d8b3 /doc | |
| parent | 5b4c715e2aae4cb1ec14b32c9da66138bee2b1ab (diff) | |
services: gunicorn: Allow configuration of control-socket.
Since gunicorn is run in its own Linux namespace, where $HOME is
read-only, creating that control-socket fails and prevents gunicorn
from starting by default. Therefore, this patch disables it by
default but allows supplying a custom path via a newly added
configuration field.
* gnu/services/web.scm (gunicorn-app): Add gunicorn-app-control-socket.
(gunicorn-shepherd-services): Respect gunicorn-app-control-socket.
* doc/guix.texi (gunicorn-app): Document it.
Change-Id: I648079b630293a47801713425728a4d602c8088c
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index b4eebc8e145..f91e8cee845 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -36277,6 +36277,10 @@ Launch the app as this group (it must be an existing group). | |||
| 36277 | A list of sockets (as path strings) which gunicorn will be listening | 36277 | A list of sockets (as path strings) which gunicorn will be listening |
| 36278 | on. This list must contain at least one socket. | 36278 | on. This list must contain at least one socket. |
| 36279 | 36279 | ||
| 36280 | @item @code{control-socket} (default: #f) (type: string) | ||
| 36281 | If set, creates a gunicorn control-socket at the given path. Note that, | ||
| 36282 | the control socket should refer to a path listed in @code{mappings}. | ||
| 36283 | |||
| 36280 | @item @code{socket-user} (default: @code{user}) (type: string) | 36284 | @item @code{socket-user} (default: @code{user}) (type: string) |
| 36281 | Owner of the directory containing the socket (must be an existing user). | 36285 | Owner of the directory containing the socket (must be an existing user). |
| 36282 | 36286 | ||
