diff --git a/platform/shell-sync/sync.sh b/platform/shell-sync/sync.sh index f263ccc5..757879dc 100644 --- a/platform/shell-sync/sync.sh +++ b/platform/shell-sync/sync.sh @@ -327,3 +327,12 @@ sync_all() { [ "$failures" -eq 0 ] && [ "$notification_failures" -eq 0 ] } +start_heartbeat() { + echo "$(date +%s)" > "$HEARTBEAT_FILE" + while true; do + echo "$(date +%s)" > "$HEARTBEAT_FILE" + sleep 60 + done & + HEARTBEAT_PID=$! +} +