mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
net-mgmt/py-gstat_exporter: add gstat_exporter_args
PR: 278041 Reported by: Seyed Pouria Mousavizadeh Tehrani <p.mousavizadeh@protonmail.com> Reviewed by: Lapo Luchini <lapo@lapo.it> (maintainer) Approved by: Lapo Luchini <lapo@lapo.it> (maintainer)
This commit is contained in:
committed by
Hiroki Tagato
parent
403f4180d3
commit
51f61ceaa8
@@ -1,5 +1,6 @@
|
||||
PORTNAME= gstat_exporter
|
||||
DISTVERSION= 0.2.0
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net-mgmt python
|
||||
MASTER_SITES= PYPI
|
||||
@@ -17,8 +18,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7.1:net-mgmt/py-prometh
|
||||
USES= python
|
||||
USE_RC_SUBR= gstat_exporter
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#
|
||||
# gstat_exporter_enable (bool): Set to "NO" by default.
|
||||
# Set it to "YES" to enable gstat_exporter_enable.
|
||||
# gstat_exporter_args (string): Set to "" by default.
|
||||
# Set additional command line arguments
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
@@ -22,6 +24,6 @@ load_rc_config ${name}
|
||||
pidfile="/var/run/${name}.pid"
|
||||
command_interpreter=%%PYTHON_CMD%%
|
||||
command=%%PREFIX%%/bin/${name}.py
|
||||
start_cmd="/usr/sbin/daemon -f -p ${pidfile} $command_interpreter $command"
|
||||
start_cmd="/usr/sbin/daemon -f -p ${pidfile} $command_interpreter $command ${gstat_exporter_args}"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
||||
Reference in New Issue
Block a user