[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/13: doc: Use herd for cerbot deploy hook example.
From: |
guix-commits |
Subject: |
09/13: doc: Use herd for cerbot deploy hook example. |
Date: |
Sat, 14 Oct 2023 16:49:27 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit fec8e513803970f5105817ae80b696605bbf3b03
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Thu Oct 5 14:20:49 2023 +0100
doc: Use herd for cerbot deploy hook example.
* doc/guix.texi (Certificate Services): Replace PID file based example with
one using (gnu services herd). Rename %nginx-deploy-hook to
%certbot-deploy-hook.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
doc/guix.texi | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 3a9a909df8..3517c95251 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -32010,11 +32010,12 @@ A service type for the @code{certbot} Let's Encrypt
client. Its value
must be a @code{certbot-configuration} record as in this example:
@lisp
-(define %nginx-deploy-hook
- (program-file
- "nginx-deploy-hook"
- #~(let ((pid (call-with-input-file "/var/run/nginx/pid" read)))
- (kill pid SIGHUP))))
+(define %certbot-deploy-hook
+ (program-file "certbot-deploy-hook.scm"
+ (with-imported-modules '((gnu services herd))
+ #~(begin
+ (use-modules (gnu services herd))
+ (with-shepherd-action 'nginx ('reload) result result)))))
(service certbot-service-type
(certbot-configuration
@@ -32023,7 +32024,7 @@ must be a @code{certbot-configuration} record as in
this example:
(list
(certificate-configuration
(domains '("example.net" "www.example.net"))
- (deploy-hook %nginx-deploy-hook))
+ (deploy-hook %certbot-deploy-hook))
(certificate-configuration
(domains '("bar.example.net")))))))
@end lisp
- branch master updated (7ce925fbe2 -> 08c55c03bf), guix-commits, 2023/10/14
- 03/13: services: dhcp-client-service-type: Support DDNS., guix-commits, 2023/10/14
- 02/13: gnu: Add dexy-color-sddm-theme., guix-commits, 2023/10/14
- 08/13: gnu: Add vim-rainbow, guix-commits, 2023/10/14
- 11/13: gnu: Add taskflow., guix-commits, 2023/10/14
- 07/13: gnu: icewm: Update to 3.4.3, guix-commits, 2023/10/14
- 01/13: gnu: Add abstractdark-sddm-theme., guix-commits, 2023/10/14
- 09/13: doc: Use herd for cerbot deploy hook example.,
guix-commits <=
- 04/13: gnu: f3d: Update to 2.2.1., guix-commits, 2023/10/14
- 05/13: gnu: xpra: Update to 5.0.3, guix-commits, 2023/10/14
- 06/13: gnu: xnedit: Update to 1.5.2, guix-commits, 2023/10/14
- 10/13: gnu: sbcl-trivial-clipboard: Update to 0.0.0-7.aee67d6., guix-commits, 2023/10/14
- 12/13: gnu: Add kokkos., guix-commits, 2023/10/14
- 13/13: gnu: dealii: Update to 9.5.1., guix-commits, 2023/10/14