mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
added indexer stat to health page
This commit is contained in:
@ -5,6 +5,7 @@ MAINTMPFILE=/var/run/piler/main.indexer.tmp
|
||||
DELTATMPFILE=/var/run/piler/delta.indexer.tmp
|
||||
INDEXER=indexer
|
||||
PRIORITY=mail.error
|
||||
TOUCHFILE=/var/piler/stat/indexer
|
||||
|
||||
if [ -f $MAINTMPFILE ]; then echo "INDEXER ERROR: indexer merging to main index is already running. It started at "`cat $MAINTMPFILE` | logger -p $PRIORITY ; exit 1; fi
|
||||
|
||||
@ -12,6 +13,8 @@ if [ -f $DELTATMPFILE ]; then echo "INDEXER ERROR: delta indexing and merging is
|
||||
|
||||
date > $DELTATMPFILE
|
||||
|
||||
touch $TOUCHFILE
|
||||
|
||||
function finish {
|
||||
rm -f $DELTATMPFILE
|
||||
}
|
||||
|
@ -4,11 +4,14 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
MAINTMPFILE=/var/run/piler/main.indexer.tmp
|
||||
INDEXER=indexer
|
||||
PRIORITY=mail.error
|
||||
TOUCHFILE=/var/piler/stat/indexer
|
||||
|
||||
if [ -f $MAINTMPFILE ]; then echo "INDEXER ERROR: indexer merging to main index is already running. It started at "`cat $MAINTMPFILE` | logger -p $PRIORITY ; exit 1; fi
|
||||
|
||||
date > $MAINTMPFILE
|
||||
|
||||
touch $TOUCHFILE
|
||||
|
||||
function finish {
|
||||
rm -f $MAINTMPFILE
|
||||
}
|
||||
|
Reference in New Issue
Block a user