diff options
author | Ashish SHUKLA <ashish@FreeBSD.org> | 2021-07-16 21:20:43 +0000 |
---|---|---|
committer | Ashish SHUKLA <ashish@FreeBSD.org> | 2021-07-16 21:20:43 +0000 |
commit | 253662f02817f89e209afb4ab047a75b13441ef8 (patch) | |
tree | 7df4e5f3e8a61f3623cbf51f1f35c134de7534de | |
parent | a9bfed5dc704e5765b8b5d4dee2f8f8cb72bb495 (diff) | |
download | ports-253662f02817f89e209afb4ab047a75b13441ef8.tar.gz ports-253662f02817f89e209afb4ab047a75b13441ef8.zip |
security/nebula: Fix rc.d script
-rw-r--r-- | security/nebula/Makefile | 1 | ||||
-rw-r--r-- | 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@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" |