diff options
author | Bruno Victal <mirai@makinata.eu> | 2023-04-03 12:58:03 +0100 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-12 08:29:39 -0400 |
commit | 6920334e7be57f793accbf2f30347a1516db8aab (patch) | |
tree | e607cdfe930d34ffdd26472c1509cf6feca4e6d6 | |
parent | 2e8d618861fcb69a28dc0581c93d6eb278a5e679 (diff) | |
download | guix-6920334e7be57f793accbf2f30347a1516db8aab.tar guix-6920334e7be57f793accbf2f30347a1516db8aab.tar.gz |
services: nginx: Add reopen action.
This is required to allow log file rotations using rottlog, etc.
* gnu/services/web.scm (nginx-shepherd-service): Add reopen shepherd action.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r-- | gnu/services/web.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 4fe9c2d9ab..45897d7d6f 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -840,7 +840,11 @@ This has the effect of killing old worker processes and starting new ones, using the same configuration file. It is useful for situations where the same nginx configuration file can point to different things after a reload, such as renewed TLS certificates, or @code{include}d files.") - (procedure (nginx-action "-s" "reload")))))))))) + (procedure (nginx-action "-s" "reload"))) + (shepherd-action + (name 'reopen) + (documentation "Re-open log files.") + (procedure (nginx-action "-s" "reopen")))))))))) (define nginx-service-type (service-type (name 'nginx) |