Compare commits

..

No commits in common. "master" and "v1.3.0.1" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= elasticsearch_exporter PORTNAME= elasticsearch_exporter
PORTVERSION= 1.3.0 PORTVERSION= 1.3.0
PORTREVISION= 2 PORTREVISION= 1
CATEGORIES= sysutils CATEGORIES= sysutils
MAINTAINER= johan@nosd.in MAINTAINER= johan@nosd.in

View File

@ -20,9 +20,6 @@
# or above. [debug,info,warn,error] # or above. [debug,info,warn,error]
# (default: "info") # (default: "info")
# #
# elasticsearch_exporter_log_file (str): log messages to this file
# (default: "/var/log/elasticsearch_exporter.log")
#
. /etc/rc.subr . /etc/rc.subr
@ -35,12 +32,11 @@ load_rc_config $name
: ${elasticsearch_exporter_listen=":9114"} : ${elasticsearch_exporter_listen=":9114"}
: ${elasticsearch_exporter_endpoint="http://localhost:9200"} : ${elasticsearch_exporter_endpoint="http://localhost:9200"}
: ${elasticsearch_exporter_log_level="info"} : ${elasticsearch_exporter_log_level="info"}
: ${elasticsearch_exporter_log_file="/var/log/elasticsearch_exporter.log"}
: ${elasticsearch_exporter_pidfile:="/var/run/elasticsearch_exporter.pid"} : ${elasticsearch_exporter_pidfile:="/var/run/elasticsearch_exporter.pid"}
: ${elasticsearch_exporter_user:="prometheus"} : ${elasticsearch_exporter_user:="prometheus"}
command="/usr/local/bin/elasticsearch_exporter" command="/usr/local/bin/elasticsearch_exporter"
command_args="--es.uri=\${elasticsearch_exporter_endpoint} --web.listen-address=\${elasticsearch_exporter_listen} --log.level=\${elasticsearch_exporter_log_level} 2>&1 > ${elasticsearch_exporter_log_file}" command_args="--es.uri=\${elasticsearch_exporter_endpoint} --web.listen-address=\${logstash_exporter_listen} --log.level=\${logstash_exporter_log_level}"
start_cmd="/usr/sbin/daemon -u ${elasticsearch_exporter_user} ${command} ${command_args}" start_cmd="/usr/sbin/daemon -u ${elasticsearch_exporter_user} ${command} ${command_args}"
run_rc_command "$1" run_rc_command "$1"