From f367a5a856d8b9e67891074b39c3e7ce4b49de05 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 16 Sep 2026 14:06:51 -0700 Subject: [PATCH] deploy: gate the port wait after stopping this service's own quadlet A redeploy of a running frank-large holds 7770 itself, so waiting on the port before stopping the unit would have made every subsequent deploy fail. Stop the user unit first (a no-op on a first cutover), then wait, then install and start. --- scripts/deploy-remote.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/deploy-remote.sh b/scripts/deploy-remote.sh index f4122d7..d545ff0 100755 --- a/scripts/deploy-remote.sh +++ b/scripts/deploy-remote.sh @@ -1023,6 +1023,10 @@ wait_port_free() { deploy_llm_large() { retire_root_llm_large + # The predecessor can also be THIS quadlet -- a redeploy of a running + # frank-large -- so stop the user unit before waiting on the port. On a + # first cutover it is not running and this is a no-op. + systemctl --user stop frank-large.service 2>/dev/null || true # Pull once, then run the localhost/-aliased tag: this host's quadlet path # cannot resolve registry-prefixed refs from local storage at create time # (same workaround as anubis/hermes), and Pull=never keeps boots off the