1
0
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:
Ashish SHUKLA 2021-07-17 02:50:43 +05:30
parent a9bfed5dc7
commit 253662f028
No known key found for this signature in database
GPG Key ID: C746CFA9E74FA4B0
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= nebula
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.0
PORTREVISION= 1
CATEGORIES= security
MAINTAINER= ashish@FreeBSD.org

View File

@ -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"