diff --git a/util/indexer.delta.sh b/util/indexer.delta.sh index d47a9e61..ab2e2f58 100755 --- a/util/indexer.delta.sh +++ b/util/indexer.delta.sh @@ -1,8 +1,9 @@ #!/bin/bash +export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin MAINTMPFILE=/var/run/piler/main.indexer.tmp DELTATMPFILE=/var/run/piler/delta.indexer.tmp -INDEXER=`which indexer` +INDEXER=indexer PRIORITY=mail.error 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 diff --git a/util/indexer.main.sh b/util/indexer.main.sh index 5bc7b07d..4bc0698e 100755 --- a/util/indexer.main.sh +++ b/util/indexer.main.sh @@ -1,8 +1,8 @@ #!/bin/bash +export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin MAINTMPFILE=/var/run/piler/main.indexer.tmp -#MAINTMPFILE=/tmp/main.indexer.tmp -INDEXER=`which indexer` +INDEXER=indexer PRIORITY=mail.error 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