16 lines
530 B
Bash
16 lines
530 B
Bash
#!/bin/bash
|
|
PATH_BIN=/usr/bin
|
|
PATH_LOG=/var/lib/sphinx/log
|
|
|
|
echo "$(date '+%Y-%m-%d %H:%M:%S') === RERPISE INDEXATION CIBLAGE" >> $PATH_LOG/indexer.log
|
|
|
|
# Sphinx rotate
|
|
echo "$(date '+%Y-%m-%d %H:%M:%S') - Sphinx - Debut" >> $PATH_LOG/indexer.log
|
|
$PATH_BIN/indexer --config /etc/sphinxsearch/sphinx.reprise.conf --rotate ciblage >> $PATH_LOG/indexer.log
|
|
echo "$(date '+%Y-%m-%d %H:%M:%S') - Sphinx - Fin" >> $PATH_LOG/indexer.log
|
|
|
|
echo "$(date '+%Y-%m-%d %H:%M:%S') === FIN REPRISE INDEXATION CIBLAGE" >> $PATH_LOG/indexer.log
|
|
|
|
|
|
|