summaryrefslogtreecommitdiff
blob: 7c600efdbbafb3a76e418bd890ec71081930c99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}