mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-27 09:00:11 +01:00
e118feb3ab
Signed-off-by: Janos SUTO <sj@acts.hu>
24 lines
363 B
Bash
24 lines
363 B
Bash
#!/bin/bash
|
|
|
|
set -o nounset
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec/piler:/usr/local/libexec/piler
|
|
TMPFILE=/var/run/piler/purge.tmp
|
|
PURGE_BEACON=/var/piler/stat/purge
|
|
|
|
if [[ -f $TMPFILE ]]; then exit 1; fi
|
|
|
|
date > $TMPFILE
|
|
|
|
function finish {
|
|
rm -f $TMPFILE
|
|
}
|
|
|
|
trap finish EXIT
|
|
|
|
touch $PURGE_BEACON
|
|
|
|
pilerpurge.py
|