git: 90586c77f6c1 - main - net-mgmt/promscale: rc script improvements
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Dec 2022 18:39:03 UTC
The branch main has been updated by feld: URL: https://cgit.FreeBSD.org/ports/commit/?id=90586c77f6c11915db367c7890e30a1c24b5a7f8 commit 90586c77f6c11915db367c7890e30a1c24b5a7f8 Author: Mark Felder <feld@FreeBSD.org> AuthorDate: 2022-12-03 18:37:14 +0000 Commit: Mark Felder <feld@FreeBSD.org> CommitDate: 2022-12-03 18:38:58 +0000 net-mgmt/promscale: rc script improvements PR: 267907 --- net-mgmt/promscale/Makefile | 1 + net-mgmt/promscale/files/promscale.in | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/net-mgmt/promscale/Makefile b/net-mgmt/promscale/Makefile index 98b0ff0269d5..2d1f689bdba8 100644 --- a/net-mgmt/promscale/Makefile +++ b/net-mgmt/promscale/Makefile @@ -1,5 +1,6 @@ PORTNAME= promscale DISTVERSION= 0.16.0 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod DISTFILES= go.mod:gomod diff --git a/net-mgmt/promscale/files/promscale.in b/net-mgmt/promscale/files/promscale.in index d3b818ad31cc..04852908602c 100644 --- a/net-mgmt/promscale/files/promscale.in +++ b/net-mgmt/promscale/files/promscale.in @@ -12,10 +12,13 @@ # Set to NO by default # promscale_user (string): # Set user that promscale will run under -# Default is "%%GRAFANA_USER%%" +# Default is "%%USERS%%" # promscale_group (string): # Set group that own promscale files -# Default is "%%GRAFANA_GROUP%%" +# Default is "%%GROUPS%%" +# promscale_args (string): +# Extra arguments for to pass to promscale +# Default is "" . /etc/rc.subr @@ -27,13 +30,13 @@ load_rc_config $name : ${promscale_enable:="NO"} : ${promscale_user:="%%USERS%%"} : ${promscale_group:="%%GROUPS%%"} +: ${promscale_args:=""} pidfile="/var/run/${name}/${name}.pid" -required_files="${promscale_config}" procname="%%PREFIX%%/bin/promscale" command="/usr/sbin/daemon" -command_args="-f -p ${pidfile} -t ${name} /usr/bin/env ${promscale_env} ${procname} ${promscale_args}" +command_args="-f -p ${pidfile} -t ${name} -T ${name} /usr/bin/env ${promscale_env} ${procname} ${promscale_args}" start_precmd="promscale_start_precmd"