Update distributed_cron.sh
This commit is contained in:
parent
b545999fb3
commit
15912e2aed
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue