Skip to content

fix(agent): self-heal stale watchdog cron entry after sysupgrade (#879) - #880

Merged
gnacho merged 2 commits into
mainfrom
fix/879-stale-watchdog-cron
Sep 27, 2026
Merged

gnacho merged 2 commits into
mainfrom
fix/879-stale-watchdog-cron

Conversation

@gnacho

@gnacho gnacho commented Sep 27, 2026

Copy link
Copy Markdown
Owner

A sysupgrade wipes /usr/sbin but keeps /etc, so routers that had the old watchdog cron entry are left with a line pointing at a deleted file: cron logs a missing-command error every 2 minutes until something removes it. The package defaults and the console reinstall clean it, but neither runs on a plain sysupgrade.

The agent init script now self-heals at start: if the watchdog binary is gone and a netpulse-watchdog cron entry is still there, the entry is removed. Applied to all init copies (standalone deploy file, the install-agent.sh embedded copy, the server reinstall script and the OpenWrt package init). Verified functionally in sh: entry removed when the binary is missing, kept when present, clean no-op when there is no entry.

Closes #879

@gnacho
gnacho merged commit 6d9a68f into main Sep 27, 2026
2 checks passed
@gnacho
gnacho deleted the fix/879-stale-watchdog-cron branch September 27, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stale watchdog cron line after sysupgrade logs a missing-command error every 2 min

1 participant