2
0
When my server (running CENTOS) is restarted I have to manually start searchd for each website I use Sphinx on.
It's not hard to do (just copy/paste one line in the terminal for each site), but if I forget to do it, or am not aware that the server has been restarted, then search will be down on my websites.
The command I'm referring to to start searchd is this:
/usr/local/bin/searchd --config /path/to/sphinx/etc/sphinx.conf
Is there a way to have searchd automatically start up when my server is restarted?
1Modify the apache start/stop scripts to also start/stop sphinx? – ssnobody – 2014-09-11T01:55:47.787
searchd is part of Sphinx, not of Apache, so is a separate service. You shouldn't need to restart it when restarting Apache. To ensure that the service is running, add rather your above command to
/etc/rc.local
. – harrymc – 2015-01-09T18:29:12.5501@harrymc I think you are right. I'm changing my question. – Nate – 2015-01-09T20:46:51.620
What version of CentOS are you using? This is important to know because CentOS 7 uses systemd for system startup. – FSMaxB – 2015-01-16T14:49:45.603
@FSMaxB I have version 6.6 – Nate – 2015-01-16T16:37:42.820