From 10046bf846d9b358230844eae865b0360b9e681e Mon Sep 17 00:00:00 2001 From: Erik Simon Date: Sun, 20 Sep 2026 18:36:21 +0200 Subject: [PATCH] fix(mars): restart hermes when prepare-dirs' script changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit prepare-dirs is an inactive oneshot and switch-to-configuration only restarts active units, so the .env delivery added in 461d6cc deployed cleanly and then did nothing — the container kept running with the old script until something else restarted it. Co-Authored-By: Claude Opus 5 --- hosts/mars/hermes-agent.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/mars/hermes-agent.nix b/hosts/mars/hermes-agent.nix index 8e5f688..dd26b79 100644 --- a/hosts/mars/hermes-agent.nix +++ b/hosts/mars/hermes-agent.nix @@ -369,6 +369,10 @@ in ]; requires = [ "hermes-agent-prepare-dirs.service" ]; unitConfig.RequiresMountsFor = [ "/mnt/jupiter" ]; + # prepare-dirs is an inactive oneshot, and switch-to-configuration only + # restarts ACTIVE units — so editing its script otherwise lands nowhere + # until something else happens to restart the container. + restartTriggers = [ config.systemd.services.hermes-agent-prepare-dirs.script ]; }; # The two Gitea webhook routes, written as config (not via `hermes webhook