Created
December 15, 2011 11:09
-
-
Save lalinsky/1480735 to your computer and use it in GitHub Desktop.
Acoustid Index startup script (FreeBSD)
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/sh | |
# PROVIDE: fpserver | |
# KEYWORD: shutdown | |
# | |
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to | |
# enable fpserver: | |
# | |
# fpserver_enable (bool): Set to NO by default. Set it to YES to | |
# enable fpserver. | |
# | |
. /etc/rc.subr | |
name="fpserver" | |
rcvar=`set_rcvar` | |
load_rc_config $name | |
: ${fpserver_enable="NO"} | |
: ${fpserver_user="acoustid"} | |
: ${fpserver_bin="/home/acoustid/index/fpi-server"} | |
: ${fpserver_indexdir="/var/lib/acoustid/idx/"} | |
pidfile="/var/run/acoustid/${name}.pid" | |
procname="${fpserver_bin}" | |
command="/usr/sbin/daemon" | |
command_args="-cf -p ${pidfile} -- ${fpserver_bin} -d ${fpserver_indexdir} -s -f local2" | |
run_rc_command "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment