GNU bug report logs -
#58590
[PATCH 0/2] Rework nginx-shepherd reload
Previous Next
Reported by: EuAndreh <eu <at> euandre.org>
Date: Mon, 17 Oct 2022 20:58:02 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58590 in the body.
You can then email your comments to 58590 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#58590
; Package
guix-patches
.
(Mon, 17 Oct 2022 20:58:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
EuAndreh <eu <at> euandre.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 17 Oct 2022 20:58:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
As discussed in [0], improve the documentation of the "reload" action
of nginx, to avoid letting users get into the pitfall of thinking that
a this changes the configuration file, or enables a configuration file
change to be deployed.
[0]: https://issues.guix.gnu.org/58405
EuAndreh (2):
services: nginx: Use nginx-action over inline gexp.
services: nginx: Improve reload action documentation.
gnu/services/web.scm | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
--
2.38.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#58590
; Package
guix-patches
.
(Mon, 17 Oct 2022 20:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/services/web.scm (nginx-shepherd-service): Use the simpler
"nginx-action" helper, for the same reload side-effect.
---
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 @@ (define (nginx-shepherd-service config)
(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)
--
2.38.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#58590
; Package
guix-patches
.
(Mon, 17 Oct 2022 21:56:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 58590 <at> debbugs.gnu.org (full text, mbox):
* gnu/services/web.scm (nginx-shepherd-service): Be explicit about the
reload action not changing the configuration file, but instead
respawning worker processes.
---
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 7fde8824b3..2023119037 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -819,7 +819,11 @@ (define (nginx-shepherd-service config)
(list
(shepherd-action
(name 'reload)
- (documentation "Reload NGINX configuration file and restart worker processes.")
+ (documentation "Reload nginx configuration file and restart worker processes.
+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"))))))))))
(define nginx-service-type
--
2.38.0
Reply sent
to
Christopher Baines <mail <at> cbaines.net>
:
You have taken responsibility.
(Tue, 18 Oct 2022 10:17:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
EuAndreh <eu <at> euandre.org>
:
bug acknowledged by developer.
(Tue, 18 Oct 2022 10:17:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 58590-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
EuAndreh <eu <at> euandre.org> writes:
> As discussed in [0], improve the documentation of the "reload" action
> of nginx, to avoid letting users get into the pitfall of thinking that
> a this changes the configuration file, or enables a configuration file
> change to be deployed.
>
> [0]: https://issues.guix.gnu.org/58405
>
> EuAndreh (2):
> services: nginx: Use nginx-action over inline gexp.
> services: nginx: Improve reload action documentation.
>
> gnu/services/web.scm | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
Thanks, I've pushed these two commits to master now (as
117b0a65c832dcec592a64284910c01f595aa84a and
dbdc8f64e7e2d35abbfbfc40ac06cf103207d99e).
Thanks again,
Chris
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 15 Nov 2022 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 211 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.