summaryrefslogtreecommitdiff
path: root/net/dataplaneapi/files/dataplaneapi.in
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 /net/dataplaneapi/files/dataplaneapi.in
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)
Diffstat (limited to 'net/dataplaneapi/files/dataplaneapi.in')
-rw-r--r--net/dataplaneapi/files/dataplaneapi.in1
1 files changed, 1 insertions, 0 deletions
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"