Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43d718cf14 | ||
|
|
583fa7567d | ||
|
|
9c7b70f974 |
7 changed files with 79 additions and 0 deletions
2
dist/freebsd/rc.conf.d/lux_host
vendored
Executable file
2
dist/freebsd/rc.conf.d/lux_host
vendored
Executable 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
2
dist/freebsd/rc.conf.d/lux_node
vendored
Executable 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
22
dist/freebsd/rc.d/lux_host
vendored
Executable 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
22
dist/freebsd/rc.d/lux_node
vendored
Executable 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
14
dist/samples/lux-host.xml
vendored
Normal 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
11
dist/samples/lux-node.xml
vendored
Normal 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
6
vendor/modules.txt
vendored
Normal 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
|
||||||
Loading…
Add table
Reference in a new issue