services: cuirass: Respawn ‘cuirass-web’ more slowly.

* gnu/services/cuirass.scm (cuirass-shepherd-service): Add
‘respawn-delay’ and ‘respawn-limit’ fields for ‘cuirass-web’.

Change-Id: I38c65d3a13fb3abc7c8f14784de3c93f5d7603f7
This commit is contained in:
Ludovic Courtès 2025-02-24 10:56:18 +01:00
parent 075fe3083b
commit 61a9aa7fbe
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -207,6 +207,13 @@
(documentation "Run Cuirass web interface.")
(provision '(cuirass-web))
(requirement '(user-processes cuirass))
;; XXX: Respawn slowly to work around the fact that 'cuirass' is not
;; ready yet (not listening to the bridge) when it gets in 'started'
;; state.
(respawn-delay 1)
(respawn-limit #~'(10 . 15))
(start #~(make-forkexec-constructor
(list (string-append #$cuirass "/bin/cuirass")
"web"