From 02d4afbdf1a86a9d6a0051ba1738c130c7701be2 Mon Sep 17 00:00:00 2001 From: Manuel RĂ¼ger Date: Mon, 5 Jun 2017 17:26:38 +0200 Subject: 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 da59867f7e60..b65652001308 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 2009f854c6e1..1f7338f964eb 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 7632511c4c1e..732cc11a9334 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} -- cgit v1.2.3-65-gdbad