Answer the question
In order to leave comments, you need to log in
Sphinx how to properly set up indexing on the server?
Good people, teach me how to properly set up indexing through cron?
I use the manual version via bash script: in the morning and in the evening.
I run with my hands...
#!/bin/bash
config_path="/etc/sphinx/sphinx.conf";
searchd --stop
indexer --all -c $config_path
searchd --config $config_path
Answer the question
In order to leave comments, you need to log in
Crooked - how is it?
When reindexing, the indexer itself sends a signal to the sphinx HUP daemon to reread the configs, so there is no need to restart shpinx.
[email protected]:~# crontab -l
# m h dom mon dow command
0 08 * * * indexer --rotate --all > /dev/null
/usr/bin/indexer --rotate --all
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question