22 lines
439 B
Bash
Executable file
22 lines
439 B
Bash
Executable file
#!/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"
|
|
|