mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
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>
This commit is contained in:
parent
dd10ba4184
commit
337e681b7a
1 changed files with 5 additions and 1 deletions
|
@ -840,7 +840,11 @@ (define (nginx-shepherd-service config)
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue