Ubuntu: start sphinxsearch with specific options

By default, on Ubuntu, SphinxSearch is using /etc/sphinxsearch/sphinx.conf and /etc/default/sphinxsearch to start/stop daemon.

If you need to use specific command line options (like -c ), you need to update your /etc/init.d/sphinxsearch

In the do_start() function, change the line :

start-stop-daemon --start --pidfile $PIDFILE --chuid www-data --exec ${DAEMON}


start-stop-daemon --start --pidfile $PIDFILE --chuid www-data --exec ${DAEMON} -- ${DAEMON_OPTS}

Set the DAEMON_OPTS variable at the beginning of the file. For example :


I’ve also updated all /etc/sphinxsearch/sphinx.conf occurrences to ${CONFIG}