guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: services: nginx: Add reopen action.


From: guix-commits
Subject: 02/02: services: nginx: Add reopen action.
Date: Tue, 11 Apr 2023 12:22:53 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 337e681b7a312b6910725ba553918a6a2e442f89
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Mon Apr 3 12:58:03 2023 +0100

    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>
---
 gnu/services/web.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]