Ecriture lancement indexation pour suivi dans les logs
This commit is contained in:
parent
dfdb914b17
commit
ead70004b6
@ -21,6 +21,8 @@ done
|
||||
# Suppression fin de ligne
|
||||
idx=$(echo $idx|sed -e "s/^[idx ]*//g"||sed -e "s/[ ]*$//g")
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === TENTATIVE INDEXATION DIR" >> $PATH_LOG/indexer.log
|
||||
|
||||
# Lancement de l'indexation
|
||||
if [ -n "$idx" ]; then
|
||||
if [[ "$idx" > 0 ]]; then
|
||||
@ -28,7 +30,7 @@ if [ -n "$idx" ]; then
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === INDEXATION DIR" >> $PATH_LOG/indexer.log
|
||||
|
||||
# Create file to indicate indexing on slave
|
||||
rm -v $PATH_LOG/dir-*.idx
|
||||
rm -f $PATH_LOG/dir-*.idx
|
||||
echo "START $(date '+%Y-%m-%d %H:%M:%S')" >> $FILEINDEX
|
||||
|
||||
# Sphinx rotate
|
||||
|
@ -21,6 +21,8 @@ done
|
||||
# Suppression fin de ligne
|
||||
idx=$(echo $idx|sed -e "s/^[idx ]*//g"||sed -e "s/[ ]*$//g")
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === TENTATIVE INDEXATION ENT" >> $PATH_LOG/indexer.log
|
||||
|
||||
# Lancement de l'indexation
|
||||
if [ -n "$idx" ]; then
|
||||
if [[ "$idx" > 0 ]]; then
|
||||
@ -28,7 +30,7 @@ if [ -n "$idx" ]; then
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === INDEXATION ENT" >> $PATH_LOG/indexer.log
|
||||
|
||||
# Create file to indicate indexing on slave
|
||||
rm -v $PATH_LOG/ent-*.idx
|
||||
rm -f $PATH_LOG/ent-*.idx
|
||||
echo "START $(date '+%Y-%m-%d %H:%M:%S')" >> $FILEINDEX
|
||||
|
||||
# Sphinx rotate
|
||||
|
Loading…
Reference in New Issue
Block a user