mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 14:27:27 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
31c444829d
commit
ceaf055e0e
1 changed files with 4 additions and 1 deletions
5
setup.sh
5
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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue