Skip to content

Instantly share code, notes, and snippets.

@jaywilliams
Last active January 9, 2019 17:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jaywilliams/d70522a11303ef2845ef3b38178c7976 to your computer and use it in GitHub Desktop.
A working OpenBSD Sphinx Search rc.d init script
#!/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