summaryrefslogtreecommitdiff
blob: dbbbfa9c247958a5c5638540120857ec6f69fd20 (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="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
}