mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
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. PR: 270098 MFH: 2023Q1
This commit is contained in:
parent
c49aacfc48
commit
d2f1537493
@ -1,4 +1,5 @@
|
||||
PORTNAME= grafana
|
||||
PORTREVISION= 1
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 9.4.3
|
||||
CATEGORIES= www
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user