2 # $FreeBSD: head/www/py-searx/files/searx.in 413931 2016-04-24 09:32:51Z pi $
5 # REQUIRE: DAEMON NETWORKING
9 # Add the following lines to /etc/rc.conf to enable searx:
12 # searx_enable (bool): Set to YES to enable searx
14 # searx_conf (str): searx configuration file
15 # Default: ${PREFIX}/etc/searx.conf
16 # searx_user (str): searx daemon user
18 # searx_group (str): searx daemon group
20 # searx_flags (str): Extra flags passed to searx
27 : ${searx_enable:="NO"}
28 : ${searx_user:="www"}
29 : ${searx_group:="www"}
33 searx_pidfile="/var/run/${name}.pid"
34 python="%%PREFIX%%/bin/python2.7"
35 procname="%%PREFIX%%/lib/python2.7/site-packages/${name}/webapp.py"
36 command=/usr/sbin/daemon
37 command_args=" -c -f -P ${searx_pidfile} ${python} ${procname}"
38 start_precmd="searx_precmd"
42 install -o ${searx_user} /dev/null ${searx_pidfile}