lux/dist/freebsd/rc.d/lux_host
2025-02-09 22:32:57 +02:00

22 lines
439 B
Bash
Executable file

#!/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/host"}
: ${lux_host_config:="lux-host.xml"}
pidfile="/var/run/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"