summaryrefslogtreecommitdiff
path: root/app-metrics/redis_exporter/files/redis_exporter.initd
blob: 6e1ffc23f87e2055a24d975cb4b746bac9ff2110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 2016-2026 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="Prometheus Exporter for Redis Metrics"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
user=${user:-${RC_SVCNAME}}
group=${group:-${RC_SVCNAME}}
output_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
error_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log

command="/usr/bin/redis_exporter"
command_args="${command_args:---web.listen-address=:9121 --redis.addr=localhost:6379}"
command_background="true"

depend() {
	after net
}