Compare commits

..

3 commits

Author SHA1 Message Date
mykola2312
43d718cf14 add modules.txt 2025-02-10 02:50:43 +02:00
mykola2312
583fa7567d add sample configs, add rc.conf.d 2025-02-09 22:32:57 +02:00
mykola2312
9c7b70f974 add FreeBSD RC scripts 2025-02-09 22:01:09 +02:00
7 changed files with 79 additions and 0 deletions

2
dist/freebsd/rc.conf.d/lux_host vendored Executable file
View file

@ -0,0 +1,2 @@
lux_host_chdir=/var/lux
lux_host_config=lux-host.xml

2
dist/freebsd/rc.conf.d/lux_node vendored Executable file
View file

@ -0,0 +1,2 @@
lux_node_chdir=/var/lux
lux_node_config=lux-node.xml

22
dist/freebsd/rc.d/lux_host vendored Executable file
View file

@ -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"

22
dist/freebsd/rc.d/lux_node vendored Executable file
View file

@ -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"

14
dist/samples/lux-host.xml vendored Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<host>
<keystore>host-ks.dat</keystore>
<id>{ENTER HOST ID FROM --rpc-new-host}</id>
<hostname>{HOSTNAME}</hostname>
<option type="wan">
<wan method="identme"></wan>
</option>
<heartbeat>1</heartbeat>
<node>
<id>{NODE ID}</id>
<exterior>127.0.0.1:9980</exterior>
</node>
</host>

11
dist/samples/lux-node.xml vendored Normal file
View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<node>
<keystore>node-ks.dat</keystore>
<id>{ENTER NODE ID FROM --boostrap-node}</id>
<log level="debug"></log>
<rpc>unix://lux-node.sock</rpc>
<dns>127.0.0.1:9953</dns>
<interior>0.0.0.0:9979</interior>
<exterior>0.0.0.0:9980</exterior>
<sync>1</sync>
</node>

6
vendor/modules.txt vendored Normal file
View file

@ -0,0 +1,6 @@
# github.com/google/uuid v1.6.0
## explicit
github.com/google/uuid
# github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
## explicit
github.com/op/go-logging