mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:41:59 +01:00
a94019f09f
Change-Id: I2dfa02fa287a02c636f5c91914c3b8e4bef0e764 Signed-off-by: SJ <sj@acts.hu>
21 lines
334 B
Bash
21 lines
334 B
Bash
#!/bin/bash
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec/piler:/usr/local/libexec/piler
|
|
PRIORITY=mail.error
|
|
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
|