From bcf1b0c46475bd201abc1ecf6844692a20a0eab7 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Thu, 31 Oct 2024 13:49:14 +0800 Subject: [PATCH] services: jellyfin: Add auto-start? option. * rosenthal/services/web.scm (jellyfin-configuration)[auto-start?]: New field. (jellyfin-oci-containers)[auto-start?]: Use it. --- rosenthal/services/web.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rosenthal/services/web.scm b/rosenthal/services/web.scm index b84c651..321ea0d 100644 --- a/rosenthal/services/web.scm +++ b/rosenthal/services/web.scm @@ -42,6 +42,9 @@ (log-file (string "/var/log/jellyfin.log") "Path to log file.") + (auto-start? + (boolean #t) + "Whether to start automatically.") (extra-options (list '()) "List of extra options.") @@ -74,7 +77,8 @@ (define jellyfin-oci-containers (match-record-lambda - (cache-directory config-directory proxy-url log-file extra-options) + (cache-directory config-directory + proxy-url log-file auto-start? extra-options) (list (oci-container-configuration (user "jellyfin") (group "docker") @@ -86,6 +90,7 @@ (image "jellyfin/jellyfin:latest") (provision "jellyfin") (log-file log-file) + (auto-start? auto-start?) (respawn? #t) (network "host") (volumes