From a22be564393b242cc5d80f9717dc5c8588e8f9e1 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 10 Apr 2023 12:01:04 -0400 Subject: [PATCH] Solidfy container startup order --- machines/perception/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/machines/perception/configuration.nix b/machines/perception/configuration.nix index a345cc8..53e368d 100644 --- a/machines/perception/configuration.nix +++ b/machines/perception/configuration.nix @@ -99,6 +99,7 @@ }; ports = [ "8181:8181" ]; volumes = [ "/var/lib/tautulli:/config" ]; + dependsOn = [ "plex" ]; }; # Configure sabnzbd "sabnzbd" = { @@ -129,6 +130,7 @@ "/mnt/plex:/media" "/mnt/scratch/sabnzbd/download-complete:/downloads" ]; + dependsOn = [ "sabnzbd" "plex" ]; }; # Configure radarr "radarr" = { @@ -144,6 +146,12 @@ "/mnt/plex:/media" "/mnt/scratch/sabnzbd/download-complete:/downloads" ]; + dependsOn = [ "sabnzbd" "plex" ]; }; }; + # Make the containers depend on their mounts + systemd.services = { + "podman-plex" = { requires = [ "mnt-plex.mount" ]; }; + "podman-sabnzbd" = { requires = [ "mnt-scratch.mount" ]; }; + }; }