diff --git a/modules/nixos/common/containers/container-services/ABOUTME.md b/modules/nixos/common/containers/container-services/ABOUTME.md index 6bab152..4a473d5 100644 --- a/modules/nixos/common/containers/container-services/ABOUTME.md +++ b/modules/nixos/common/containers/container-services/ABOUTME.md @@ -52,5 +52,7 @@ If adding a new per-service option: - The group's unit sets `restartTriggers` to the files-write script, so editing any `files` entry restarts the stack on the next switch (services that read files at startup, like Gitea templates, otherwise keep serving the old content) -- Env file changes trigger a path unit that restarts the stack (`container-services--env-reload.*`) +- Env file changes trigger a path unit that restarts the stack (`container-services--env-reload.*`); + the restart is queued with `systemctl restart --no-block`, so the reload unit does not wait for or + inherit the health of the stack it restarted - Compose files are rendered to the store and staged to `/var/lib/container-services//compose.yml` diff --git a/modules/nixos/common/containers/container-services/systemd.nix b/modules/nixos/common/containers/container-services/systemd.nix index 456d52c..6f7cb32 100644 --- a/modules/nixos/common/containers/container-services/systemd.nix +++ b/modules/nixos/common/containers/container-services/systemd.nix @@ -108,7 +108,7 @@ description = "Restart container service group '${groupName}' on env file changes"; serviceConfig = { Type = "oneshot"; - ExecStart = "${pkgs.systemd}/bin/systemctl restart container-services-${groupName}.service"; + ExecStart = "${pkgs.systemd}/bin/systemctl restart --no-block container-services-${groupName}.service"; }; }; };