summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2025-07-18 02:51:35 -0400
committerJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2025-07-18 03:03:11 -0400
commit7cbccf15bdabab9c9cfd4c7918b8fcaebd478be0 (patch)
tree3d63a4c642c0e289889eb57d0cdd92e4bf95509b
parentnet/toxiproxy-{cli,server}: New port: TCP proxy to simulate network and syste... (diff)
net/dataplaneapi: Fix error in GOMEMLIMIT when cgroups is not available
After starting the rc(8) script for Data Plane API, the error "failed to set GOMEMLIMIT: cgroups is not supported on this system" is displayed, however even though an error level is displayed it starts successfully. However, a workaround to suppress this error, since we do not have cgroups, is to set the 'AUTOMEMLIMIT_EXPERIMENT' environment variable to 'system' in the rc(8) script. PR: 288282 Reported by: dch Approved by: acm (mentor)
-rw-r--r--net/dataplaneapi/Makefile2
-rw-r--r--net/dataplaneapi/files/dataplaneapi.in1
2 files changed, 2 insertions, 1 deletions
diff --git a/net/dataplaneapi/Makefile b/net/dataplaneapi/Makefile
index 4048e1e15ec4..7d869fd5b6d5 100644
--- a/net/dataplaneapi/Makefile
+++ b/net/dataplaneapi/Makefile
@@ -1,7 +1,7 @@
PORTNAME= dataplaneapi
DISTVERSIONPREFIX= v
DISTVERSION= 3.2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MAINTAINER= dtxdf@FreeBSD.org
diff --git a/net/dataplaneapi/files/dataplaneapi.in b/net/dataplaneapi/files/dataplaneapi.in
index fb5f74c483c5..4dd4c98df3f1 100644
--- a/net/dataplaneapi/files/dataplaneapi.in
+++ b/net/dataplaneapi/files/dataplaneapi.in
@@ -19,6 +19,7 @@ load_rc_config $name
: ${dataplaneapi_enable:="NO"}
+dataplaneapi_env="AUTOMEMLIMIT_EXPERIMENT=system"
pidfile="/var/run/${name}.pid"
procname="%%LOCALBASE%%/bin/${name}"
command="/usr/sbin/daemon"