git: 9ed9383601bf - main - net-mgmt/alertmanager: Make daemon close file descriptors on start

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Fri, 12 Jul 2024 14:17:24 UTC
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9ed9383601bf09428e220e755dcee344f2cbb9df

commit 9ed9383601bf09428e220e755dcee344f2cbb9df
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-07-12 13:41:43 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-07-12 14:16:02 +0000

    net-mgmt/alertmanager: Make daemon close file descriptors on start
    
    Prevents alertmanager from hanging in piperd.
    
    PR:             279862
    Approved by:    maintainer timeout
---
 net-mgmt/alertmanager/files/alertmanager.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-mgmt/alertmanager/files/alertmanager.in b/net-mgmt/alertmanager/files/alertmanager.in
index 6dd39aea2e9d..e8b61ed9dba4 100644
--- a/net-mgmt/alertmanager/files/alertmanager.in
+++ b/net-mgmt/alertmanager/files/alertmanager.in
@@ -43,7 +43,7 @@ command="/usr/sbin/daemon"
 procname="%%PREFIX%%/bin/alertmanager"
 sig_reload=HUP
 extra_commands="reload"
-command_args="-o ${alertmanager_log_file} -p ${pidfile} ${procname} \
+command_args="-f -o ${alertmanager_log_file} -p ${pidfile} ${procname} \
                 --config.file=${alertmanager_config} \
                 --storage.path=${alertmanager_data_dir} \
                 ${alertmanager_args}"