summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-metrics/dnsmasq_exporter/files/dnsmasq_exporter.initd')
-rw-r--r--app-metrics/dnsmasq_exporter/files/dnsmasq_exporter.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-metrics/dnsmasq_exporter/files/dnsmasq_exporter.initd b/app-metrics/dnsmasq_exporter/files/dnsmasq_exporter.initd
new file mode 100644
index 000000000000..7c600efdbbaf
--- /dev/null
+++ b/app-metrics/dnsmasq_exporter/files/dnsmasq_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="dnsmasq Exporter for Prometheus"
+command="/usr/bin/dnsmasq_exporter"
+command_background=true
+command_user="${RC_SVCNAME}:${RC_SVCNAME}"
+error_log=/var/log/dnsmasq_exporter/${RC_SVCNAME}.log
+output_log=/var/log/dnsmasq_exporter/${RC_SVCNAME}.log
+pidfile=/var/run/${RC_SVCNAME}.pid
+
+depend() {
+ after dnsmasq net
+}