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