feat(shell-sync): add start_heartbeat()

This commit is contained in:
hoelee committed 2026-07-06 09:00:00 +08:00
1 parent 9b40dc1c93
commit 77762b983e
1 file changed
+9
+9
View File
@@ -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=$!
}