git: 253662f02817 - main - security/nebula: Fix rc.d script
Ashish SHUKLA
ashish at FreeBSD.org
Fri Jul 16 21:20:59 UTC 2021
The branch main has been updated by ashish:
URL: https://cgit.FreeBSD.org/ports/commit/?id=253662f02817f89e209afb4ab047a75b13441ef8
commit 253662f02817f89e209afb4ab047a75b13441ef8
Author: Ashish SHUKLA <ashish at FreeBSD.org>
AuthorDate: 2021-07-16 21:20:43 +0000
Commit: Ashish SHUKLA <ashish at FreeBSD.org>
CommitDate: 2021-07-16 21:20:43 +0000
security/nebula: Fix rc.d script
---
security/nebula/Makefile | 1 +
security/nebula/files/nebula.in | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/security/nebula/Makefile b/security/nebula/Makefile
index 7046f83135fc..17097dc83992 100644
--- a/security/nebula/Makefile
+++ b/security/nebula/Makefile
@@ -1,6 +1,7 @@
PORTNAME= nebula
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.0
+PORTREVISION= 1
CATEGORIES= security
MAINTAINER= ashish at FreeBSD.org
diff --git a/security/nebula/files/nebula.in b/security/nebula/files/nebula.in
index d378d29c0dae..7d59319588ac 100644
--- a/security/nebula/files/nebula.in
+++ b/security/nebula/files/nebula.in
@@ -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"
More information about the dev-commits-ports-all
mailing list