feat(shell-sync): start_heartbeat

This commit is contained in:
hoelee committed 2026-09-11 08:51:00 +08:00
1 parent 594a8113ad
commit b8ef3810fc
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=$!
}