opnsense-ports/net-p2p/lain-uplink-exchange/files/lux_host.in
2025-02-13 04:59:42 +02:00

24 lines
465 B
Bash

#!/bin/sh
# PROVIDE: lux-host
# REQUIRE: DAEMON
# AFTER: NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name=lux_host
rcvar=lux_host_enable
load_rc_config $name
: ${lux_host_chdir:="/var/lux"}
: ${lux_host_config:="lux-host.xml"}
: ${lux_host_user:="lux"}
pidfile="/var/run/lux/lux_host.pid"
command="/usr/sbin/daemon"
command_args="-l daemon -s info --supervisor-pidfile ${pidfile} /usr/local/bin/lux --host --config ${lux_host_config}"
run_rc_command "$1"