me
/
guix
Archived
1
0
Fork 0

services: web: Return success from nginx-action.

Previous value of #f lead to `head reload nginx' returning exit code 1,
complicating usage from scripts (and other actions).  Returning #t fixes that.
Any actual failures are still covered by the invoke call above.

* gnu/services/web.scm (nginx-shepherd-service)[nginx-action]<-s>: Return #t.

Change-Id: I4ce1645798a85baddeb0f5bd702a2567db3c7aaa
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Tomas Volf 2024-07-05 17:01:29 +02:00 committed by Ludovic Courtès
parent 01183a77aa
commit e8347bc177
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

@ -830,7 +830,7 @@ of index files."
#~(lambda _ #~(lambda _
(invoke #$nginx-binary "-c" #$config-file #$@args) (invoke #$nginx-binary "-c" #$config-file #$@args)
(match '#$args (match '#$args
(("-s" . _) #f) (("-s" . _) #t)
(_ (_
;; When FILE is true, we cannot be sure that PID-FILE will ;; When FILE is true, we cannot be sure that PID-FILE will
;; be created, so assume it won't show up. When FILE is ;; be created, so assume it won't show up. When FILE is