fix(provision): remove legacy @reboot supervisor cron (App Lab owns boot)
A real power-cycle exposed a boot race: the old '@reboot zeroclaw-supervisor.sh' cron
started a host daemon that grabbed :8080 before the App Lab app, so the app's container
failed to bind and exited ('Failed to start default app'). The App Lab app + 'properties
set default' is the boot mechanism now, so the provisioner strips the cron and kills any
running supervisor. Verified the app then comes up clean on :8080.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
410e5aba68
commit
d71899520e
@@ -56,6 +56,11 @@ ok "binary + config + .secret_key + oauth_token + apess-node.env"
|
|||||||
echo "→ starting the app (compiles+flashes the matrix sketch, launches daemon in-container)"
|
echo "→ starting the app (compiles+flashes the matrix sketch, launches daemon in-container)"
|
||||||
S "cd $DEST && TMPDIR=/tmp timeout 300 arduino-app-cli app start $DEST 2>&1 | tail -4"
|
S "cd $DEST && TMPDIR=/tmp timeout 300 arduino-app-cli app start $DEST 2>&1 | tail -4"
|
||||||
|
|
||||||
echo "→ (optional) enable Run-at-startup for boot persistence:"
|
# The App Lab app IS the boot mechanism now. Remove the legacy @reboot supervisor
|
||||||
|
# cron so it doesn't race the app for :8080 on boot (it wins, and the app fails).
|
||||||
|
S 'crontab -l 2>/dev/null | grep -v "zeroclaw-supervisor" | crontab - 2>/dev/null; for p in $(pgrep -f "[z]eroclaw-supervisor"); do kill -9 $p 2>/dev/null; done'
|
||||||
|
ok "removed legacy supervisor @reboot cron (App Lab app owns boot now)"
|
||||||
|
|
||||||
|
echo "→ enable Run-at-startup for boot persistence:"
|
||||||
echo " adb -s $SERIAL shell 'arduino-app-cli properties set default $DEST'"
|
echo " adb -s $SERIAL shell 'arduino-app-cli properties set default $DEST'"
|
||||||
ok "provisioned. In App Lab, open 'ZeroClaw Node' → Run."
|
ok "provisioned. In App Lab, open 'ZeroClaw Node' → Run."
|
||||||
|
|||||||
Reference in New Issue
Block a user