feat(shell-sync): run_daemon() part 1/3

This commit is contained in:
hoelee committed 2026-07-22 09:00:00 +08:00
1 parent be9191c8a5
commit 4c9912dd79
1 file changed
+5
+5
View File
@@ -368,3 +368,8 @@ run_once() {
return "$status"
}
run_daemon() {
log "Starting daemon mode (accounts: $NUM_ACCOUNTS)"
start_heartbeat
trap 'kill "${HEARTBEAT_PID:-}" "${CRON_PID:-}" 2>/dev/null || true' EXIT