Bug 253053

Summary: net-mgmt/prometheus2: prometheus startup script not redirecting stdout
Product: Ports & Packages Reporter: pete
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed DUPLICATE    
Severity: Affects Some People CC: dor.bsd, drtr0jan
Priority: --- Flags: dor.bsd: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch for files/prometheus.in none

Description pete 2021-01-27 22:36:49 UTC
Created attachment 221971 [details]
patch for files/prometheus.in

This issue is similar to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227945

Specifically, the prometheus rc.d script needs to pass the "-f" flag to daemon(8) to ensure std in/out/err are sent to /dev/null.  without this flag it will cause tools like saltstack to hang.
Comment 1 David O'Rourke 2021-01-28 10:36:39 UTC
Hi,

Thanks for filing this issue and submitting a patch, and sorry about the bug.

-David
Comment 2 David O'Rourke 2021-01-28 10:37:08 UTC
Comment on attachment 221971 [details]
patch for files/prometheus.in

Looks good.
Comment 3 Boris Korzun 2021-01-28 16:34:19 UTC
Please close this bug.

The bug was also fixed in bug #253064.

WBR
Boris
Comment 4 pete 2021-01-28 17:46:38 UTC

*** This bug has been marked as a duplicate of bug 253064 ***