FreeBSD Bugzilla – Attachment 240760 Details for
Bug 270098
www/grafana9: Grafana wrongly reported as not running due to procname
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] www/grafana9: fix rc.d script procname and bump PORTREVISION
patch (text/plain), 1.77 KB, created by
Dominik Banoviez
on 2023-03-11 22:41:08 UTC
(
hide
)
Description:
[PATCH] www/grafana9: fix rc.d script procname and bump PORTREVISION
Filename:
MIME Type:
Creator:
Dominik Banoviez
Created:
2023-03-11 22:41:08 UTC
Size:
1.77 KB
patch
obsolete
>From 2d70495adce193482a0eb8be9003c11b09fb2053 Mon Sep 17 00:00:00 2001 >From: Dominik Banoviez <dominik@banoviez.com> >Date: Fri, 10 Mar 2023 22:28:28 +0100 >Subject: [PATCH 1/2] www/grafana9: fix rc.d script procname > >Grafana switched to a unified binary, changing `grafana-server` to be a >wrapper script that executes `grafana server` in its place. This patch >fixes `procname` in the rc.d script, so that rc.d's process name >checking doesn't fail / the service gets properly reported as running. >--- > www/grafana9/files/grafana.in | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/www/grafana9/files/grafana.in b/www/grafana9/files/grafana.in >index b3275ea9e..8f13bdaf9 100644 >--- a/www/grafana9/files/grafana.in >+++ b/www/grafana9/files/grafana.in >@@ -57,10 +57,10 @@ fi > pidfile="/var/run/${name}/${name}.pid" > required_files="${grafana_config}" > >-procname="%%PREFIX%%/bin/grafana-server" >+procname="%%PREFIX%%/bin/grafana" > command="/usr/sbin/daemon" > command_args="-f ${grafana_syslog_output_flags} -p ${pidfile} -t ${name} \ >- /usr/bin/env ${grafana_env} ${procname} \ >+ /usr/bin/env ${grafana_env} ${procname} server \ > -config=${grafana_config} \ > -homepath=${grafana_homepath} \ > ${grafana_args}" >-- >2.39.2 > > >From d45e863596ebf09ecdaf0e01098e24cf9aa34bdf Mon Sep 17 00:00:00 2001 >From: Dominik Banoviez <dominik@banoviez.com> >Date: Sat, 11 Mar 2023 22:26:46 +0000 >Subject: [PATCH 2/2] www/grafana9: Bump PORTREVISION after rc.d script change > >--- > www/grafana9/Makefile | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/www/grafana9/Makefile b/www/grafana9/Makefile >index 4c185ac78..06926f8c6 100644 >--- a/www/grafana9/Makefile >+++ b/www/grafana9/Makefile >@@ -1,4 +1,5 @@ > PORTNAME= grafana >+PORTREVISION= 1 > DISTVERSIONPREFIX= v > DISTVERSION= 9.4.3 > CATEGORIES= www >-- >2.39.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 270098
:
240733
|
240760
|
240761