Bug 264348 - net-mgmt/telegraf: Add child pid option
Summary: net-mgmt/telegraf: Add child pid option
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Palle Girgensohn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-30 12:10 UTC by Kirill
Modified: 2022-06-06 08:51 UTC (History)
4 users (show)

See Also:
lwhsu: maintainer-feedback? (girgen)


Attachments
Diff file (2.32 KB, patch)
2022-05-30 12:10 UTC, Kirill
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill 2022-05-30 12:10:21 UTC
Created attachment 234323 [details]
Diff file

Hello, team!

We have scenarios of monitoring Telegraf status with "outputs.health" module. If the telegraf process doesn't respond on the specified port, we want to restart with kill command.

For the sake of safety it would be great to have the telegraf PID stored by daemon instead of filtering lsof,ps or similar utilities' outputs. 

Is it possible to add '-p' option to the daemon configuration file to store PID? Kindly see suggested patch in attachments.