'rcctl [-d] configtest haproxy' works for me.
-c Only checks config file and exits with code 0 if no error was
found, or exits with code 1 if a syntax error was found.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/haproxy/Makefile,v
diff -u -p -r1.143 Makefile
--- Makefile 15 Oct 2026 14:24:40 -0000 1.143
+++ Makefile 1 Nov 2026 09:43:17 -0000
@@ -4,6 +4,7 @@ DISTNAME = haproxy-3.4.7
CATEGORIES = net www
HOMEPAGE = https://www.haproxy.org
MAINTAINER = Lucas Gabriel Vuotto <[email protected]>
+REVISION = 0
# GPLv2
PERMIT_PACKAGE = Yes
Index: pkg/haproxy.rc
===================================================================
RCS file: /cvs/ports/net/haproxy/pkg/haproxy.rc,v
diff -u -p -r1.6 haproxy.rc
--- pkg/haproxy.rc 3 Jun 2024 21:36:14 -0000 1.6
+++ pkg/haproxy.rc 1 Nov 2026 09:43:57 -0000
@@ -8,6 +8,10 @@ daemon_flags="-f ${SYSCONFDIR}/haproxy/h
# rc_reload() appends '-sf ...'
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}.*"
+rc_configtest() {
+ ${daemon} ${daemon_flags} -c
+}
+
rc_reload() {
${daemon} ${daemon_flags} -sf $(cat /var/run/haproxy.pid)
}