projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
eximconf: only treat @d.o addresses as eligible for default options
[mirror/dsa-puppet.git]
/
modules
/
ganeti2
/
files
/
cleanup-watcher-pause-file
1
#!/bin/sh
2
3
set -e
4
set -u
5
6
P=/var/lib/ganeti/watcher.pause
7
SKEW=1800
8
9
if [ -e "$P" ]; then
10
until="$(cat "$P")"
11
deleteafter=$(( until + SKEW ))
12
13
now="$(date +%s)"
14
15
if [ "$deleteafter" -lt "$now" ]; then
16
rm "$P"
17
fi
18
fi