From 9c7b70f9743d7c95f1687d57443ccb44d1f6d4c5 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Sun, 9 Feb 2025 22:01:09 +0200 Subject: [PATCH] add FreeBSD RC scripts --- dist/freebsd/lux_host | 22 ++++++++++++++++++++++ dist/freebsd/lux_node | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100755 dist/freebsd/lux_host create mode 100755 dist/freebsd/lux_node 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" +