I've installed the Sphinx search daemon (searchd), and noticed that the port
didn't come with a rc.d script. After a good bit of man page reading and
debugging, I was able to get the Sphinx search daemon to behave properly,
namely using the --nodetach and rc_bg options.

To help improve the port, would you want to include this rc.d script, or
something similar? That way if someone wants to setup a Sphinx Search daemon,
they won't have to spend all the time debugging as I did.

-- 
Jay Williams

#!/bin/ksh
#
# searchd - Sphinxsearch network daemon

daemon="/usr/local/bin/searchd"
daemon_flags="--nodetach"
# daemon_user="deploy"

# force start the daemon in background
rc_bg=YES

. /etc/rc.d/rc.subr

rc_cmd $1

Reply via email to