diff options
| author | Daniel Lakeland <dlakelan@street-artists.org> | 2025-09-05 12:10:45 -0700 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-09-14 18:13:07 +0200 |
| commit | b05fc57386d37c592d56bd9f52b66f4c57f472f5 (patch) | |
| tree | 564101ea158d0b108d89ea98cebc6c35abe9f41d /gnu | |
| parent | 3512a3f318dd58ca00651150c3ac4ef9ff1bc16b (diff) | |
services: keepalived: Add ‘shepherd-requirement’ field.
* gnu/services/networking.scm (<keepalived-configuration>)[shepherd-requirement]:
New field.
(keepalived-shepherd-service): Honor it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/services/networking.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index bc8257d3140..ccd67b93c85 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -3003,15 +3003,17 @@ of the IPFS peer-to-peer storage network."))) (keepalived keepalived-configuration-keepalived ;file-like (default keepalived)) (config-file keepalived-configuration-config-file ;file-like - (default #f))) + (default #f)) + (shepherd-requirement keepalived-configuration-shepherd-requirement + (default '(networking user-processes)))) (define (keepalived-shepherd-service config) (match-record config <keepalived-configuration> - (keepalived config-file) + (keepalived config-file shepherd-requirement) (list (shepherd-service (provision '(keepalived)) (documentation "Run keepalived.") - (requirement '(loopback)) + (requirement shepherd-requirement) (start #~(make-forkexec-constructor (list (string-append #$keepalived "/sbin/keepalived") "--dont-fork" "--log-console" "--log-detail" |
