Message ID | 20221017205719.5704-2-eu@euandre.org |
---|---|
State | Accepted |
Headers | show |
Series | Rework nginx-shepherd reload | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git-branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
cbaines/issue | success | View issue |
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)