diff options
-rw-r--r-- | app-metrics/node_exporter/files/node_exporter.service | 7 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-1.1.2-r1.ebuild (renamed from app-metrics/node_exporter/node_exporter-1.1.2.ebuild) | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/app-metrics/node_exporter/files/node_exporter.service b/app-metrics/node_exporter/files/node_exporter.service index 3235924f7850..20eac483fc8a 100644 --- a/app-metrics/node_exporter/files/node_exporter.service +++ b/app-metrics/node_exporter/files/node_exporter.service @@ -1,10 +1,13 @@ [Unit] Description=Node Exporter +Wants=network-online.target +After=network-online.target [Service] User=node_exporter -EnvironmentFile=/etc/sysconfig/node_exporter -ExecStart=/usr/bin/node_exporter $OPTIONS +Group=node_exporter +Type=simple +ExecStart=/usr/sbin/node_exporter [Install] WantedBy=multi-user.target diff --git a/app-metrics/node_exporter/node_exporter-1.1.2.ebuild b/app-metrics/node_exporter/node_exporter-1.1.2-r1.ebuild index dc94a55d0c6e..d3c63f4c9580 100644 --- a/app-metrics/node_exporter/node_exporter-1.1.2.ebuild +++ b/app-metrics/node_exporter/node_exporter-1.1.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -578,7 +578,7 @@ SRC_URI="https://github.com/prometheus/node_exporter/archive/${MY_PV}.tar.gz -> LICENSE="Apache-2.0 BSD BSD-2 MIT" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" CDEPEND="acct-group/node_exporter acct-user/node_exporter" @@ -602,9 +602,7 @@ src_compile() { src_install() { dosbin node_exporter/node_exporter dodoc {README,CHANGELOG,CONTRIBUTING}.md - systemd_dounit examples/systemd/node_exporter.service - insinto /etc/sysconfig - newins examples/systemd/sysconfig.node_exporter node_exporter + systemd_dounit "${FILESDIR}"/node_exporter.service newinitd "${FILESDIR}"/${PN}.initd ${PN} newconfd "${FILESDIR}"/${PN}.confd ${PN} keepdir /var/lib/node_exporter /var/log/node_exporter |