decreasing the archive size with the purge messages

This commit is contained in:
SJ
2013-09-19 09:46:17 +02:00
parent a68710d507
commit c73af94e77
2 changed files with 43 additions and 6 deletions

22
util/purge.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/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