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
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