diff options
| author | Daniel Littlewood <dan@danielittelwood.xyz> | 2026-04-22 20:42:37 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-04-24 22:16:01 +0200 |
| commit | fe89ae08c20b6d340adc02ce3ba10d0f83b0aedb (patch) | |
| tree | a86d6dd1623306d94c4376b4e0c4456be465dbd1 /gnu/services | |
| parent | 72ce4088da077b3b2283be23bb6cb0065b8d94b6 (diff) | |
services: nginx: Fix ‘stop’ in cases where a custom config file is passed.
A previous commit (c7cb771cf4) fixed an issue with the nginx service to
ensure it can be stopped when started from a custom config file.
The stop command, which should have been `nginx -s stop`, was mistakenly
written as `nginx stop`, which means that `herd stop nginx` still fails
in the given case. This commit corrects that typo.
* gnu/services/web.scm (nginx-shepherd-service): In ‘stop’, correctly
call “nginx -s stop” when ‘value’ is not a process.
Fixes: guix/guix#7061
Reported-by: Dan Littlewood
Change-Id: I3055fc24084d30da969afd508861d2423a396ced
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #8128
Diffstat (limited to 'gnu/services')
| -rw-r--r-- | gnu/services/web.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 948d8064c6a..4d2f78bee19 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm | |||
| @@ -995,7 +995,7 @@ of index files." | |||
| 995 | ;; "nginx -s stop". | 995 | ;; "nginx -s stop". |
| 996 | (if (process? value) | 996 | (if (process? value) |
| 997 | (terminate-process (process-id value) SIGTERM) | 997 | (terminate-process (process-id value) SIGTERM) |
| 998 | (#$(nginx-action "stop"))))) | 998 | (#$(nginx-action "-s" "stop"))))) |
| 999 | 999 | ||
| 1000 | (actions | 1000 | (actions |
| 1001 | (list | 1001 | (list |
