Archived
1
0
Fork 0

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:
Bruno Victal 2023-04-03 12:58:03 +01:00 committed by Maxim Cournoyer
parent 2e8d618861
commit 6920334e7b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -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)