Update distributed_cron.sh

This commit is contained in:
holzi1005 2024-11-17 10:04:22 +01:00
parent b545999fb3
commit 15912e2aed

View file

@ -26,11 +26,13 @@ then
echo "OK -- $(date) -- $(hostname)" >> $FILE.log echo "OK -- $(date) -- $(hostname)" >> $FILE.log
fi fi
echo "Job done. Keep lock for 30 seconds" echo "Job done. Keep lock for 20 seconds"
sleep 30 sleep 10
rm $FILE rm $FILE
exit 0 exit 0
else else
echo "Other Server is running cron job" echo "Other Server is running cron job"
sleep 30
rm $FILE
exit 0 exit 0
fi fi