Revision d98b37a1
b/doc/examples/hooks/ethers | ||
---|---|---|
51 | 51 |
while ! ( set -o noclobber; echo "$$" > $LOCKFILE) 2> /dev/null ; do |
52 | 52 |
NOW=$(date +%s) |
53 | 53 |
if [ $NOW -ge $TIMEOUT ]; then |
54 |
echo "Cannot acquire lockfile for ethers update, giving up"
|
|
54 |
logger -s "Cannot acquire lockfile for ethers update, giving up"
|
|
55 | 55 |
exit 1 |
56 | 56 |
fi |
57 |
echo "Cannot acquire lockfile for ethers update, waiting"
|
|
57 |
logger -s "Cannot acquire lockfile for ethers update, waiting"
|
|
58 | 58 |
sleep $LOCKSLEEP |
59 | 59 |
done |
60 | 60 |
trap "rm -f $LOCKFILE" EXIT |
Also available in: Unified diff