mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
security/nebula: Fix rc.d script
This commit is contained in:
parent
a9bfed5dc7
commit
253662f028
@ -1,6 +1,7 @@
|
||||
PORTNAME= nebula
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.4.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
|
||||
MAINTAINER= ashish@FreeBSD.org
|
||||
|
@ -18,6 +18,8 @@
|
||||
name="nebula"
|
||||
rcvar="nebula_enable"
|
||||
desc="Scalable overlay networking tool with a focus on performance, simplicity and security"
|
||||
pidfile="/var/run/nebula.pid"
|
||||
procname="%%PREFIX%%/bin/nebula"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
@ -27,12 +29,11 @@ load_rc_config $name
|
||||
: ${nebula_logfile:=/var/log/nebula.log}
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
actual_command="%%PREFIX%%/bin/nebula"
|
||||
command_args="-c -t nebula -o ${nebula_logfile} ${actual_command} -config ${nebula_config}"
|
||||
command_args="-c -p ${pidfile} -t nebula -o ${nebula_logfile} ${procname} -config ${nebula_config}"
|
||||
|
||||
required_files="${nebula_config} ${command}"
|
||||
|
||||
extra_commands="configtest"
|
||||
configtest_cmd="${actual_command} -test -config ${nebula_config}"
|
||||
configtest_cmd="${procname} -test -config ${nebula_config}"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user