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
|
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
|
||||||
|
|
Loading…
Reference in a new issue