feat(iso): auto-queue an Audit task once bee-web is up
Adds bee-autoaudit.service: after the boot-time bee-web/bee-audit/ bee-preflight/bee-network units settle, it waits for bee-web to answer /healthz and then POSTs to the same /api/audit/run endpoint the "Run Audit" button uses. An operator opening the web UI right after boot now finds a completed Audit task (report + charts) waiting instead of an empty task history. Best-effort: any failure just falls back to the manual button. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
b09e94d02a
commit
196acf0b9f
@@ -30,6 +30,7 @@ systemctl enable bee-network.service
|
||||
systemctl enable bee-preflight.service
|
||||
systemctl enable bee-audit.service
|
||||
systemctl enable bee-web.service
|
||||
systemctl enable bee-autoaudit.service
|
||||
systemctl enable bee-sshsetup.service
|
||||
systemctl enable bee-blackbox.service
|
||||
systemctl enable bee-selfheal.timer
|
||||
@@ -65,6 +66,7 @@ chmod +x /usr/local/bin/bee-smoketest 2>/dev/null || true
|
||||
chmod +x /usr/local/bin/bee 2>/dev/null || true
|
||||
chmod +x /usr/local/bin/bee-log-run 2>/dev/null || true
|
||||
chmod +x /usr/local/bin/bee-selfheal 2>/dev/null || true
|
||||
chmod +x /usr/local/bin/bee-autoaudit 2>/dev/null || true
|
||||
chmod +x /usr/local/bin/bee-boot-status 2>/dev/null || true
|
||||
chmod +x /usr/local/bin/bee-install 2>/dev/null || true
|
||||
chmod +x /usr/local/bin/bee-gui-gate 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user