feat(shell-sync): start_heartbeat
This commit is contained in:
1 parent
3d0248f140
commit
c1d426040e
1 file changed
+9
@@ -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=$!
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user