Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
$ crontab -l
0 * * * * /path/to/sphinx/indexer.sh
*/5 * * * * /path/to/sphinx/searchd.sh
#!/bin/sh
/usr/bin/indexer --config /path/to/sphinx/sphinx.conf --all --rotate > /dev/null
#!/bin/sh
runing=`ps ax | grep "searchd" | grep -v "grep" | wc -l`
if [ $runing -eq 0 ]; then
/usr/bin/searchd --config /path/to/sphinx/sphinx.conf
fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question