diff --git a/dist/freebsd/lux_host b/dist/freebsd/lux_host new file mode 100755 index 0000000..04fee0f --- /dev/null +++ b/dist/freebsd/lux_host @@ -0,0 +1,22 @@ +#!/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" + diff --git a/dist/freebsd/lux_node b/dist/freebsd/lux_node new file mode 100755 index 0000000..fb78141 --- /dev/null +++ b/dist/freebsd/lux_node @@ -0,0 +1,22 @@ +#!/bin/sh + +# PROVIDE: lux-node +# REQUIRE: DAEMON +# AFTER: NETWORKING +# KEYWORD: shutdown + +. /etc/rc.subr + +name=lux_node +rcvar=lux_node_enable + +load_rc_config $name +: ${lux_node_chdir:="/var/lux/node"} +: ${lux_node_config:="lux-node.xml"} + +pidfile="/var/run/lux_node.pid" +command="/usr/sbin/daemon" +command_args="-l daemon -s info --supervisor-pidfile ${pidfile} /usr/local/bin/lux --node --config ${lux_node_config}" + +run_rc_command "$1" +