Bug 253053 - net-mgmt/prometheus2: prometheus startup script not redirecting stdout
Summary: net-mgmt/prometheus2: prometheus startup script not redirecting stdout
Status: Closed DUPLICATE of bug 253064
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-27 22:36 UTC by pete
Modified: 2021-01-28 17:46 UTC (History)
2 users (show)

See Also:
dor.bsd: maintainer-feedback+


Attachments
patch for files/prometheus.in (611 bytes, patch)
2021-01-27 22:36 UTC, pete
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***