|
@@ -1,5 +1,4 @@
|
|
|
#!/bin/sh
|
|
|
-# $FreeBSD: branches/2020Q4/www/searx/files/searx.in 463944 2018-03-09 08:34:57Z yuri $
|
|
|
|
|
|
# PROVIDE: searx
|
|
|
# REQUIRE: DAEMON NETWORKING
|
|
@@ -29,14 +28,9 @@ rcvar=searx_enable
|
|
|
: ${searx_group:="www"}
|
|
|
: ${searx_flags:=""}
|
|
|
|
|
|
-export SEARX_SETTINGS_FILE="/usr/local/etc/searx-settings.yml"
|
|
|
# daemon
|
|
|
pidfile="/var/run/${name}.pid"
|
|
|
-python="/usr/local/bin/python3.8"
|
|
|
-script_py="/usr/local/lib/python3.8/site-packages/${name}/webapp.py"
|
|
|
-command=/usr/sbin/daemon
|
|
|
-procname="daemon"
|
|
|
-command_args=" -c -f -P ${pidfile} ${python} ${script_py}"
|
|
|
+searx_run="/usr/local/bin/searx-run"
|
|
|
start_precmd="searx_precmd"
|
|
|
|
|
|
searx_precmd()
|