mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
net-mgmt/promscale: rc script improvements
PR: 267907
This commit is contained in:
parent
524a93cb92
commit
90586c77f6
@ -1,5 +1,6 @@
|
|||||||
PORTNAME= promscale
|
PORTNAME= promscale
|
||||||
DISTVERSION= 0.16.0
|
DISTVERSION= 0.16.0
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net-mgmt
|
CATEGORIES= net-mgmt
|
||||||
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod
|
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod
|
||||||
DISTFILES= go.mod:gomod
|
DISTFILES= go.mod:gomod
|
||||||
|
@ -12,10 +12,13 @@
|
|||||||
# Set to NO by default
|
# Set to NO by default
|
||||||
# promscale_user (string):
|
# promscale_user (string):
|
||||||
# Set user that promscale will run under
|
# Set user that promscale will run under
|
||||||
# Default is "%%GRAFANA_USER%%"
|
# Default is "%%USERS%%"
|
||||||
# promscale_group (string):
|
# promscale_group (string):
|
||||||
# Set group that own promscale files
|
# 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
|
. /etc/rc.subr
|
||||||
|
|
||||||
@ -27,13 +30,13 @@ load_rc_config $name
|
|||||||
: ${promscale_enable:="NO"}
|
: ${promscale_enable:="NO"}
|
||||||
: ${promscale_user:="%%USERS%%"}
|
: ${promscale_user:="%%USERS%%"}
|
||||||
: ${promscale_group:="%%GROUPS%%"}
|
: ${promscale_group:="%%GROUPS%%"}
|
||||||
|
: ${promscale_args:=""}
|
||||||
|
|
||||||
pidfile="/var/run/${name}/${name}.pid"
|
pidfile="/var/run/${name}/${name}.pid"
|
||||||
required_files="${promscale_config}"
|
|
||||||
|
|
||||||
procname="%%PREFIX%%/bin/promscale"
|
procname="%%PREFIX%%/bin/promscale"
|
||||||
command="/usr/sbin/daemon"
|
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"
|
start_precmd="promscale_start_precmd"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user