From ceaf055e0ee3f60c4947498c8762a1cb5cf0b9d5 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sun, 14 Jun 2026 09:28:31 +0000 Subject: [PATCH] setup.sh: restart agentbbs on (re)deploy so rebuilt binaries actually load enable --now leaves an already-running service untouched, so a redeploy's new binary never loaded. Use enable + restart. Co-Authored-By: Claude Opus 4.8 --- setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 026f539..6d8d986 100755 --- a/setup.sh +++ b/setup.sh @@ -457,7 +457,10 @@ systemctl reload caddy 2>/dev/null || systemctl restart caddy log "configuring firewall + starting agentbbs" ufw allow 22/tcp >/dev/null ufw --force enable >/dev/null -systemctl enable --now agentbbs +# enable + restart (not just `enable --now`): a redeploy rebuilds the binary, and +# `enable --now` would leave the OLD process running, so the new build wouldn't load. +systemctl enable agentbbs >/dev/null 2>&1 || true +systemctl restart agentbbs sleep 1 systemctl is-active --quiet agentbbs \