qemu: start warden-modbus before warden-automation #12

Merged
noah merged 1 commits from qemu-init-modbus-order into flare-edge-next 2026-10-02 23:05:17 -06:00
Owner

Part of flare-edge#348 (flare-edge PR #351).

flare-edge#351 moves the panel's warden-modbus to S21modbus and warden-automation to S22automation, right after S20linkmount, so a relay held by an autostart automation closes about 9 s sooner on every reboot or OTA. An automation's device command goes through warden-modbus (flare-edge#331), so modbus starts first, and rcK stops it after automation.

The rig's /sbin/init starts the same daemons "in their S-number order" but listed automation before modbus (the old S93 and S94). It now starts modbus, then automation, then ai, mikrotik, asic, starlink, stratum and flared, and the comment names the new numbers.

Test

qemu/tests/init-daemon-order-test.sh (new, wired into CI) reads the init script's start loop and pins that order. Revert proof: with the old sbin/init it fails and shows modbus and automation swapped. With the change it passes. shellcheck is clean on both files.

Not merging: flare-edge#351 bumps the submodule to this branch once it is reviewed.

Generated with Claude Code

https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg

Part of flare-edge#348 (flare-edge PR #351). flare-edge#351 moves the panel's warden-modbus to `S21modbus` and warden-automation to `S22automation`, right after `S20linkmount`, so a relay held by an autostart automation closes about 9 s sooner on every reboot or OTA. An automation's device command goes through warden-modbus (flare-edge#331), so modbus starts first, and rcK stops it after automation. The rig's `/sbin/init` starts the same daemons "in their S-number order" but listed automation before modbus (the old S93 and S94). It now starts modbus, then automation, then ai, mikrotik, asic, starlink, stratum and flared, and the comment names the new numbers. ## Test `qemu/tests/init-daemon-order-test.sh` (new, wired into CI) reads the init script's start loop and pins that order. Revert proof: with the old `sbin/init` it fails and shows modbus and automation swapped. With the change it passes. shellcheck is clean on both files. Not merging: flare-edge#351 bumps the submodule to this branch once it is reviewed. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah added 1 commit 2026-10-02 21:25:13 -06:00
qemu: start warden-modbus before warden-automation in the rig init
ci / quality (push) Successful in 40s
ci / badges (push) Skipped
ci / mcdc (pull_request) Successful in 17s
ci / qemu-tools (pull_request) Successful in 47s
ci / test (pull_request) Successful in 19s
ci / bench (pull_request) Successful in 8s
ci / patches-apply (pull_request) Successful in 21s
ci / test (push) Successful in 17s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
ci / quality (pull_request) Successful in 39s
ci / badges (pull_request) Skipped
ci / mcdc (push) Successful in 19s
ci / bench (push) Successful in 9s
ci / patches-apply (push) Successful in 22s
ci / qemu-tools (push) Successful in 46s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
a828667b0f
flare-edge#348 moves the panel's warden-modbus to S21modbus and
warden-automation to S22automation, right after S20linkmount, so a held
relay closes about 9 s sooner at boot. An automation's device command
goes through warden-modbus (flare-edge#331), so modbus starts first. The
rig's init starts the same daemons in the panel's S-number order and
listed automation before modbus (S93, S94); it now matches the panel.

init-daemon-order-test.sh reads the start loop and pins the order; it
fails on the old list. Wired into CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah merged commit d01add5646 into flare-edge-next 2026-10-02 23:05:17 -06:00
noah deleted branch qemu-init-modbus-order 2026-10-02 23:05:17 -06:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#12