From 15912e2aede97af75a1e0c672ec632aaa92e943e Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 17 Nov 2024 10:04:22 +0100 Subject: [PATCH] Update distributed_cron.sh --- distributed_cron.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/distributed_cron.sh b/distributed_cron.sh index d0e31d4..f9dc93a 100644 --- a/distributed_cron.sh +++ b/distributed_cron.sh @@ -26,11 +26,13 @@ then echo "OK -- $(date) -- $(hostname)" >> $FILE.log fi - echo "Job done. Keep lock for 30 seconds" - sleep 30 + echo "Job done. Keep lock for 20 seconds" + sleep 10 rm $FILE exit 0 else echo "Other Server is running cron job" + sleep 30 + rm $FILE exit 0 fi