[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Mar 2023 22:03:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270098 Bug ID: 270098 Summary: www/grafana9: Grafana wrongly reported as not running due to procname Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dominik@banoviez.com CC: drtr0jan@yandex.ru Flags: maintainer-feedback?(drtr0jan@yandex.ru) CC: drtr0jan@yandex.ru Created attachment 240733 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240733&action=edit Patches the rc.d script with the correct procname (Patch attached.) After starting Grafana, running service grafana status or service grafana stop will say grafana is not running. This happens because rc.d checks that 1) the pidfile exists 2) the process id in the pidfile is running 3) the proccess name matches either the command, or procname After Grafana switched to a unified binary, grafana-server is a wrapper for "grafana server". The procname should therefore be set to %%PREFIX%%/bin/grafana instead of %%PREFIX%%/bin/grafana-server so rc.d process name check succeeds. -- You are receiving this mail because: You are the assignee for the bug.