add FreeBSD RC scripts
This commit is contained in:
parent
27686cc073
commit
9c7b70f974
2 changed files with 44 additions and 0 deletions
22
dist/freebsd/lux_host
vendored
Executable file
22
dist/freebsd/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/lux_node
vendored
Executable file
22
dist/freebsd/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"
|
||||
|
||||
Loading…
Add table
Reference in a new issue