diff --git a/scripts/deploy-remote.sh b/scripts/deploy-remote.sh index 148751f..a29f0e0 100755 --- a/scripts/deploy-remote.sh +++ b/scripts/deploy-remote.sh @@ -694,6 +694,11 @@ deploy_hermes() { for unit in hermes hermes-dashboard hermes-webui; do cp "dankclaw/hermes/quadlet/$unit.container" "$quadlet_unit_dir/" done + # The generator must see the freshly-copied unit files before the + # restarts below; without this reload the first deploy after a unit edit + # restarts with the stale generated ExecStart (statfs ENOENT on renamed + # Volume= sources). + systemctl --user daemon-reload if ! systemctl --user is-active --quiet hermes.service; then podman stop hermes hermes-dashboard hermes-webui 2>/dev/null || true podman rm hermes hermes-dashboard hermes-webui 2>/dev/null || true