summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2018-03-12 17:48:16 -0500
committerAustin English <wizardedit@gentoo.org>2018-03-12 17:48:16 -0500
commit4a4f25e70b1b67c211d75a3292d61074911433c4 (patch)
tree61febec690dcd61614805cc9d26ad2135b8411fd /net-analyzer/prometheus-snmp_exporter
parentapp-misc/timew: Bump version to 1.1.1 (diff)
downloadgentoo-4a4f25e70b1b67c211d75a3292d61074911433c4.tar.gz
gentoo-4a4f25e70b1b67c211d75a3292d61074911433c4.tar.bz2
gentoo-4a4f25e70b1b67c211d75a3292d61074911433c4.zip
net-analyzer/prometheus-snmp_exporter: fix typo in initd
austin@austin1 ~ $ touch snmp.yml austin@austin1 ~ $ /usr/bin/snmp_exporter --config-file=snmp.yml snmp_exporter: error: unknown long flag '--config-file', try --help austin@austin1 ~ $ /usr/bin/snmp_exporter --config.file=snmp.yml INFO[0000] Starting snmp exporter (version=0.8.0, branch=non-git, revision=17cefca) source="main.go:125" INFO[0000] Build context (go=go1.9.4, user=portage@releng3, date=20180222-23:34:24) source="main.go:126" INFO[0000] Listening on :9116 source="main.go:205" Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-analyzer/prometheus-snmp_exporter')
-rw-r--r--net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd b/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd
index 4d620b54b171..b214422704e2 100644
--- a/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd
+++ b/net-analyzer/prometheus-snmp_exporter/files/prometheus-snmp_exporter.initd
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 2016-2017 Gentoo Foundation
+# Copyright 2016-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Prometheus snmp exporter"
@@ -8,7 +8,7 @@ user=${user:-${RC_SVCNAME}}
group=${group:-${RC_SVCNAME}}
command="/usr/bin/snmp_exporter"
-command_args="${command_args:---config-file=/etc/snmp_exporter/snmp.yml}"
+command_args="${command_args:---config.file=/etc/snmp_exporter/snmp.yml}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/snmp_exporter/${RC_SVCNAME}.log \