git: 7cbccf15bdab - main - net/dataplaneapi: Fix error in GOMEMLIMIT when cgroups is not available
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Jul 2025 07:03:49 UTC
The branch main has been updated by dtxdf: URL: https://cgit.FreeBSD.org/ports/commit/?id=7cbccf15bdabab9c9cfd4c7918b8fcaebd478be0 commit 7cbccf15bdabab9c9cfd4c7918b8fcaebd478be0 Author: Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> AuthorDate: 2025-07-18 06:51:35 +0000 Commit: Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> CommitDate: 2025-07-18 07:03:11 +0000 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) --- net/dataplaneapi/Makefile | 2 +- net/dataplaneapi/files/dataplaneapi.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"