mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:00:13 +01:00
23 lines
320 B
Bash
23 lines
320 B
Bash
#!/bin/bash
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
|
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
|
|
|
|
|