git: 79b7a0fcef29 - main - sysutils/jail_exporter: always close stdout, stdin, and stderr
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Dec 2025 13:35:59 UTC
The branch main has been updated by asomers:
URL: https://cgit.FreeBSD.org/ports/commit/?id=79b7a0fcef29f5d5e559bdb9f0293e6794bd1420
commit 79b7a0fcef29f5d5e559bdb9f0293e6794bd1420
Author: Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2025-11-19 15:10:55 +0000
Commit: Alan Somers <asomers@FreeBSD.org>
CommitDate: 2025-12-09 13:34:53 +0000
sysutils/jail_exporter: always close stdout, stdin, and stderr
Leaving these open despite daemonizing can cause Salt to hang. Better
to close them. Logging to syslog still works.
Sponsored by: ConnectWise
PR: 291097
Approved by: David O'Rourke <dor.bsd@xm0.uk> (maintainer)
---
sysutils/jail_exporter/Makefile | 2 +-
sysutils/jail_exporter/files/jail_exporter.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysutils/jail_exporter/Makefile b/sysutils/jail_exporter/Makefile
index e235f9baf293..e46fb1673940 100644
--- a/sysutils/jail_exporter/Makefile
+++ b/sysutils/jail_exporter/Makefile
@@ -1,7 +1,7 @@
PORTNAME= jail_exporter
DISTVERSIONPREFIX= v
DISTVERSION= 0.18.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MAINTAINER= dor.bsd@xm0.uk
diff --git a/sysutils/jail_exporter/files/jail_exporter.in b/sysutils/jail_exporter/files/jail_exporter.in
index 768686c02566..c03237ccf591 100644
--- a/sysutils/jail_exporter/files/jail_exporter.in
+++ b/sysutils/jail_exporter/files/jail_exporter.in
@@ -35,7 +35,7 @@ load_rc_config $name
pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
procname="%%PREFIX%%/sbin/${name}"
-command_args="-p ${pidfile} -m 3 -T ${name} \
+command_args="-fp ${pidfile} -m 3 -T ${name} \
/usr/bin/env ${procname} \
--web.listen-address='${jail_exporter_listen_address}' \
--web.telemetry-path='${jail_exporter_telemetry_path}' \