Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2023 22:03:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 270098] www/grafana9: Grafana wrongly reported as not running due to procname
Message-ID:  <bug-270098-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270098

            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=3D240733&action=
=3Dedit
Patches the rc.d script with the correct procname

(Patch attached.)

After starting Grafana, running service grafana status or service grafana s=
top
will say grafana is not running.=20

This happens because rc.d checks that=20

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 pro=
cess
name check succeeds.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270098-7788>