Ecriture lancement indexation pour suivi dans les logs

This commit is contained in:
Michael RICOIS 2015-09-23 10:06:52 +00:00
parent dfdb914b17
commit ead70004b6
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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