From 4c9912dd791ce724d47e3263647d4062e56f5476 Mon Sep 17 00:00:00 2001 From: hoelee Date: Wed, 22 Jul 2026 09:00:00 +0800 Subject: [PATCH] feat(shell-sync): run_daemon() part 1/3 --- platform/shell-sync/sync.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 +