Bug 279862

Summary: net-mgmt/alertmanager: Make daemon close file descriptors on start
Product: Ports & Packages Reporter: Michael Gmelin <grembo>
Component: Individual Port(s)Assignee: michal
Status: Closed FIXED    
Severity: Affects Only Me CC: michal
Priority: --- Flags: michal: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to pass -f to daemon grembo: maintainer-approval?

Description Michael Gmelin freebsd_committer freebsd_triage 2024-06-19 14:47:14 UTC
Created attachment 251575 [details]
Patch to pass -f to daemon

Writing to stderr/stdout is not useful and can cause issues when "service alertmanager restart" is called from a forked process (as it keeps stderr/stdout open). In my case this caused processes to hand in "piperd".
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-07-12 14:17:44 UTC
A commit in branch main references this bug:

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(-)