Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get Sphinx running with Upstart on Ubuntu, but the only script I've found isn't working and seems to be more complex than I require.

Could someone provide me with a basic Sphinx Upstart script that I can start with?


share|improve this question

So I found a script base that I modified and instead of it saying "sphinxsearch start/waiting" it is giving me "sphinxsearch start/running" which I guess is good. The process dies immediately however which I think is due to the config I'm giving it. I will see if I can find a test config somewhere to conclude whether the upstart script works.

Current upstart script:

# sphinxsearch.conf

start on runlevel [2345]
stop on runlevel [016]

        su /usr/local/bin/searchd --config /etc/sphinx.conf 
end script

post-stop script
        su skerit -c 'sphinxsearch -kill :0'
end script

#End of File
share|improve this answer

On my ubuntu ( 12.04 )

START=no -> START=yes

$ cat /etc/default/sphinxsearch 

# Settings for the sphinxsearch searchd daemon
# Please read /usr/share/doc/sphinxsearch/README.Debian for details.

# Should sphinxsearch run automatically on startup? (default: no)
# Before doing this you might want to modify /etc/sphinxsearch/sphinx.conf
# so that it works for you.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.