diff options
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 | 14 |
1 files changed, 7 insertions, 7 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 36dd35f93585..2009f854c6e1 100644 --- a/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd +++ b/net-analyzer/prometheus-node_exporter/files/prometheus-node_exporter.initd @@ -1,18 +1,18 @@ #!/sbin/openrc-run -# Copyright 2016 Gentoo Foundation +# Copyright 2016-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 description="Prometheus machine metrics exporter" pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} -user=${user:-prometheus-exporter} -group=${group:-prometheus-exporter} +user=${user:-${SVCNAME}} +group=${group:-${SVCNAME}} -command="/usr/bin/prometheus-node_exporter" -command_args="${command_args:--collector.textfile.directory=/etc/prometheus-exporter}" +command="/usr/bin/node_exporter" +command_args="${command_args:--collector.textfile.directory=/var/node_exporter/}" command_background="true" start_stop_daemon_args="--user ${user} --group ${group} \ - --stdout /var/log/prometheus-exporter/${SVCNAME}.log \ - --stderr /var/log/prometheus-exporter/${SVCNAME}.log" + --stdout /var/log/node_exporter/${SVCNAME}.log \ + --stderr /var/log/node_exporter/${SVCNAME}.log" depend() { need net |