mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
20 lines
382 B
Plaintext
20 lines
382 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
. /etc/rc.subr
|
||
|
|
||
|
name=lokinet
|
||
|
rcvar=lokinet_enable
|
||
|
|
||
|
command="/usr/local/bin/${name}"
|
||
|
command_args="/usr/local/etc/${name}/daemon.ini > /dev/null 2>&1"
|
||
|
|
||
|
pidfile="/usr/local/etc/${name}/lokinet.pid"
|
||
|
|
||
|
required_files="/usr/local/etc/${name}/daemon.ini"
|
||
|
|
||
|
sig_reload="HUP"
|
||
|
|
||
|
start_precmd="${command} -g /usr/local/etc/${name}/daemon.ini"
|
||
|
|
||
|
load_rc_config $name
|
||
|
run_rc_command "$1"
|