Bug 264348

Summary: net-mgmt/telegraf: Add child pid option
Product: Ports & Packages Reporter: Kirill <kglushen>
Component: Individual Port(s)Assignee: Palle Girgensohn <girgen>
Status: New ---    
Severity: Affects Only Me CC: dmgk, girgen, kglushen, lwhsu
Priority: --- Flags: lwhsu: maintainer-feedback? (girgen)
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
Diff file none

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.