[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/15: services: nginx: Use nginx-action over inline gexp.
From: |
guix-commits |
Subject: |
02/15: services: nginx: Use nginx-action over inline gexp. |
Date: |
Tue, 18 Oct 2022 06:14:55 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 117b0a65c832dcec592a64284910c01f595aa84a
Author: EuAndreh via Guix-patches via <guix-patches@gnu.org>
AuthorDate: Mon Oct 17 17:57:18 2022 -0300
services: nginx: Use nginx-action over inline gexp.
* gnu/services/web.scm (nginx-shepherd-service): Use the simpler
"nginx-action" helper, for the same reload side-effect.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/services/web.scm | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index 227a577de3..7fde8824b3 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -820,13 +820,7 @@ of index files."
(shepherd-action
(name 'reload)
(documentation "Reload NGINX configuration file and restart
worker processes.")
- (procedure
- #~(lambda (pid)
- (if pid
- (begin
- (kill pid SIGHUP)
- (format #t "Service NGINX (PID ~a) has been
reloaded." pid))
- (format #t "Service NGINX is not running."))))))))))))
+ (procedure (nginx-action "-s" "reload"))))))))))
(define nginx-service-type
(service-type (name 'nginx)
- 12/15: gnu: Add perl-ppix-quotelike., (continued)
- 12/15: gnu: Add perl-ppix-quotelike., guix-commits, 2022/10/18
- 15/15: gnu: guix-build-coordinator: Update to 0-65.26fe4a7., guix-commits, 2022/10/18
- 14/15: gnu: Add perl-critic., guix-commits, 2022/10/18
- 10/15: gnu: Add perl-string-format., guix-commits, 2022/10/18
- 05/15: gnu: Add perl-commonmark., guix-commits, 2022/10/18
- 11/15: gnu: Add perl-ppix-regexp., guix-commits, 2022/10/18
- 04/15: gnu: Add skk-jisyo., guix-commits, 2022/10/18
- 06/15: gnu: Add perl-regexp-grammars., guix-commits, 2022/10/18
- 07/15: gnu: Add perl-config-tiny., guix-commits, 2022/10/18
- 01/15: gnu: textpieces: Reorder dependencies and fix description., guix-commits, 2022/10/18
- 02/15: services: nginx: Use nginx-action over inline gexp.,
guix-commits <=
- 08/15: gnu: Add perl-pod-spell., guix-commits, 2022/10/18
- 13/15: gnu: Add perl-ppix-utilities., guix-commits, 2022/10/18
- 03/15: services: nginx: Improve reload action documentation., guix-commits, 2022/10/18
- 09/15: gnu: Add perl-readonly-xs., guix-commits, 2022/10/18