From aa97cb8da4ebfd4823cac7fecfd856184a700a29 Mon Sep 17 00:00:00 2001 From: opencode Date: Sun, 22 Nov 2026 23:26:38 +0000 Subject: [PATCH] Ensure systemd unit is enabled for boot --- scripts/deploy-host.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/deploy-host.sh b/scripts/deploy-host.sh index 9fc65c9..4cfb0e5 100644 --- a/scripts/deploy-host.sh +++ b/scripts/deploy-host.sh @@ -57,6 +57,9 @@ UNIT=/etc/systemd/system/container-$SITE.service podman generate systemd --new --name "$SITE" > "$UNIT" systemctl daemon-reload systemctl enable "container-$SITE.service" >/dev/null 2>&1 || true +WANT=/etc/systemd/system/multi-user.target.wants/container-$SITE.service +mkdir -p "$(dirname "$WANT")" +ln -sf "/etc/systemd/system/container-$SITE.service" "$WANT" 2>/dev/null || true systemctl restart "container-$SITE.service" >/dev/null 2>&1 || podman restart "$SITE" >/dev/null sleep 3