commit:     02d4afbdf1a86a9d6a0051ba1738c130c7701be2
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  5 15:26:38 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Mon Jun  5 15:26:38 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02d4afbd

net-analyzer/prometheus-node_exporter: Use /var/lib/node_exporter instead

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 .../prometheus-node_exporter/files/prometheus-node_exporter.confd     | 4 ++--
 .../prometheus-node_exporter/files/prometheus-node_exporter.initd     | 2 +-
 .../prometheus-node_exporter/prometheus-node_exporter-0.14.0.ebuild   | 2 +-
 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}

Reply via email to