diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-09-18 12:49:20 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-09-18 12:49:20 +0200 |
commit | 1b7db743e9c14944f1f08739408e266bdd996550 (patch) | |
tree | bc66ba6475b2348ea85d0ebbc5018c1f25a45df6 /net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd | |
parent | net-misc/felix: Version bump to 2.5.1 (diff) | |
download | gentoo-1b7db743e9c14944f1f08739408e266bdd996550.tar.gz gentoo-1b7db743e9c14944f1f08739408e266bdd996550.tar.bz2 gentoo-1b7db743e9c14944f1f08739408e266bdd996550.zip |
net-analyzer/prometheus-node_exporter: Update init scripts wrt bug 631146
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd')
-rw-r--r-- | net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd | 15 |
1 files changed, 5 insertions, 10 deletions
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 1f7338f964eb..57202a4ce47b 100644 --- a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd +++ b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd @@ -3,22 +3,17 @@ # Distributed under the terms of the GNU General Public License v2 description="Prometheus machine metrics exporter" -pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} -user=${user:-${SVCNAME}} -group=${group:-${SVCNAME}} +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} command="/usr/bin/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 \ - --stderr /var/log/node_exporter/${SVCNAME}.log" + --stdout /var/log/node_exporter/${RC_SVCNAME}.log \ + --stderr /var/log/node_exporter/${RC_SVCNAME}.log" depend() { - need net after net } - -start_pre() { - checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" -} |