summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-06-05 17:26:38 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-06-05 17:26:38 +0200
commit02d4afbdf1a86a9d6a0051ba1738c130c7701be2 (patch)
tree67f2c7117a6eb7b3fab4a15c6e4e0afe153729bf /net-analyzer
parentnet-analyzer/prometheus-node_exporter: Remove old (diff)
downloadgentoo-02d4afbdf1a86a9d6a0051ba1738c130c7701be2.tar.gz
gentoo-02d4afbdf1a86a9d6a0051ba1738c130c7701be2.tar.bz2
gentoo-02d4afbdf1a86a9d6a0051ba1738c130c7701be2.zip
net-analyzer/prometheus-node_exporter: Use /var/lib/node_exporter instead
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd4
-rw-r--r--net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd2
-rw-r--r--net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild2
3 files changed, 4 insertions, 4 deletions
diff --git a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd
index da59867f7e6..b6565200130 100644
--- a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd
+++ b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.confd
@@ -1,2 +1,2 @@
-# arguments for docker-registry
-command_args="--collector.textfile.directory=/var/node_exporter/"
+# arguments for prometheus node exporter
+command_args="--collector.textfile.directory=/var/lib/node_exporter/"
diff --git a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd
index 2009f854c6e..1f7338f964e 100644
--- a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd
+++ b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd
@@ -8,7 +8,7 @@ user=${user:-${SVCNAME}}
group=${group:-${SVCNAME}}
command="/usr/bin/node_exporter"
-command_args="${command_args:--collector.textfile.directory=/var/node_exporter/}"
+command_args="${command_args:--collector.textfile.directory=/var/lib/node_exporter/}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/node_exporter/${SVCNAME}.log \
diff --git a/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild
index 7632511c4c1..732cc11a933 100644
--- a/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild
+++ b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild
@@ -41,7 +41,7 @@ src_install() {
dobin node_exporter
dodoc {README,CHANGELOG,CONTRIBUTING}.md
popd || die
- keepdir /var/node_exporter /var/log/node_exporter
+ keepdir /var/lib/node_exporter /var/log/node_exporter
fowners ${PN}:${PN} /var/node_exporter /var/log/node_exporter
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}