mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:40:13 +01:00
indexer job fixes
This commit is contained in:
parent
7e65be8ca7
commit
19efbef715
@ -19,8 +19,6 @@ trap finish EXIT
|
||||
|
||||
echo "INDEXER INFO: indexing delta1 started" | logger -p $PRIORITY
|
||||
|
||||
5,35 2-23 * * * /usr/local/bin/indexer --quiet delta1 --rotate && sleep 2 && /usr/local/bin/indexer --quiet --merge dailydelta1 delta1 --merge-dst-range deleted 0 0 --rotate
|
||||
|
||||
$INDEXER --quiet delta1 --rotate
|
||||
|
||||
echo "INDEXER INFO: indexing delta1 finished" | logger -p $PRIORITY
|
||||
|
@ -5,7 +5,7 @@ MAINTMPFILE=/var/run/piler/main.indexer.tmp
|
||||
INDEXER=`which indexer`
|
||||
PRIORITY=mail.error
|
||||
|
||||
if [ -f $MAINTMPFILE ]; then echo "ERROR: indexer merging to main index is already running. It started at "`cat $MAINTMPFILE` | logger -p $PRIORITY ; exit 1; fi
|
||||
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
|
||||
|
||||
@ -15,17 +15,17 @@ function finish {
|
||||
|
||||
trap finish EXIT
|
||||
|
||||
echo "INFO: merging to main started" | logger -p $PRIORITY
|
||||
echo "INDEXER INFO: merging to main started" | logger -p $PRIORITY
|
||||
|
||||
$INDEXER --quiet --merge main1 dailydelta1 --merge-dst-range deleted 0 0 --rotate
|
||||
|
||||
echo "INFO: merging to main finished" | logger -p $PRIORITY
|
||||
echo "INDEXER INFO: merging to main finished" | logger -p $PRIORITY
|
||||
|
||||
sleep 5
|
||||
|
||||
echo "INFO: resetting daily delta started" | logger -p $PRIORITY
|
||||
echo "INDEXER INFO: resetting daily delta started" | logger -p $PRIORITY
|
||||
|
||||
$INDEXER --quiet dailydelta1 --rotate
|
||||
|
||||
echo "INFO: resetting daily delta finished" | logger -p $PRIORITY
|
||||
echo "INDEXER INFO: resetting daily delta finished" | logger -p $PRIORITY
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user