Last active
January 9, 2019 17:00
-
-
Save jaywilliams/d70522a11303ef2845ef3b38178c7976 to your computer and use it in GitHub Desktop.
A working OpenBSD Sphinx Search rc.d init script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
# | |
# searchd - Sphinxsearch network daemon | |
# | |
# Use --nodetach flag in combination with rc_bg to workaround searchd not | |
# listening on specified network ports | |
daemon="/usr/local/bin/searchd" | |
daemon_flags="--nodetach" | |
# daemon_user="www" | |
# force start the daemon in background | |
rc_bg=YES | |
. /etc/rc.d/rc.subr | |
rc_cmd $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment