mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-03-29 05:44:24 +00:00
services: caddy: Reload by sending SIGUSR1 to the service.
* modules/rosenthal/services/web.scm (caddy-shepherd-services) [actions]: Change reload action to send SIGUSR1 to the service.
This commit is contained in:
parent
79b5b07f83
commit
a238fc8c28
@ -142,18 +142,7 @@
|
|||||||
#~(make-kill-destructor))
|
#~(make-kill-destructor))
|
||||||
(actions
|
(actions
|
||||||
(list (shepherd-configuration-action "/etc/caddy/Caddyfile")
|
(list (shepherd-configuration-action "/etc/caddy/Caddyfile")
|
||||||
(shepherd-action
|
(shepherd-signal-action 'reload SIGUSR1)))
|
||||||
(name 'reload)
|
|
||||||
(documentation "Reload Caddy configuration file.")
|
|
||||||
(procedure
|
|
||||||
#~(lambda (pid)
|
|
||||||
(if pid
|
|
||||||
(begin
|
|
||||||
(invoke "/run/privileged/bin/caddy" "reload"
|
|
||||||
"--config" "/etc/caddy/Caddyfile")
|
|
||||||
(display "Service caddy has been asked to \
|
|
||||||
reload its configuration file."))
|
|
||||||
(display "Service caddy is not running.")))))))
|
|
||||||
(auto-start? auto-start?)))))
|
(auto-start? auto-start?)))))
|
||||||
|
|
||||||
(define caddy-service-type
|
(define caddy-service-type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user