diff --git a/platform/shell-sync/sync.sh b/platform/shell-sync/sync.sh index 4d9b3902..4731fe80 100644 --- a/platform/shell-sync/sync.sh +++ b/platform/shell-sync/sync.sh @@ -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 +