On Tue, Jan 08, 2019 at 04:23:40PM -0600, Jay Williams wrote:
> 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.

I don't know that particular utility but:

> #!/bin/ksh
> #
> # searchd - Sphinxsearch network daemon
> 
> daemon="/usr/local/bin/searchd"
> daemon_flags="--nodetach"

Why using --nodetach and then rc_bg=YES ?

> # daemon_user="deploy"
> 
> # force start the daemon in background
> rc_bg=YES
> 
> . /etc/rc.d/rc.subr
> 
> rc_cmd $1
> 

-- 
Antoine

Reply via email to