summaryrefslogtreecommitdiff
path: root/app-metrics/consul_exporter/files
diff options
context:
space:
mode:
Diffstat (limited to 'app-metrics/consul_exporter/files')
-rw-r--r--app-metrics/consul_exporter/files/consul_exporter.confd3
-rw-r--r--app-metrics/consul_exporter/files/consul_exporter.initd15
2 files changed, 18 insertions, 0 deletions
diff --git a/app-metrics/consul_exporter/files/consul_exporter.confd b/app-metrics/consul_exporter/files/consul_exporter.confd
new file mode 100644
index 000000000000..eb5fbdeb0cd3
--- /dev/null
+++ b/app-metrics/consul_exporter/files/consul_exporter.confd
@@ -0,0 +1,3 @@
+# Please set the flags you wish to pass to consul_exporter in
+# command_args
+# command_args=""
diff --git a/app-metrics/consul_exporter/files/consul_exporter.initd b/app-metrics/consul_exporter/files/consul_exporter.initd
new file mode 100644
index 000000000000..dbbbfa9c2479
--- /dev/null
+++ b/app-metrics/consul_exporter/files/consul_exporter.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2016-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Consul Exporter for Prometheus"
+command="/usr/bin/consul_exporter"
+command_background=true
+command_user="${RC_SVCNAME}:${RC_SVCNAME}"
+error_log=/var/log/consul_exporter/${RC_SVCNAME}.log
+output_log=/var/log/consul_exporter/${RC_SVCNAME}.log
+pidfile=/var/run/${RC_SVCNAME}.pid
+
+depend() {
+ after consul net
+}