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

description="Unstructured log data exporter for Prometheus"
config_file="${config_file:-/etc/${RC_SVCNAME}/${RC_SVCNAME}.yml}"
command=/usr/bin/grok_exporter
command_background=yes
command_user=${RC_SVCNAME}:${RC_SVCNAME}
pidfile=/var/run/${RC_SVCNAME}.pid
error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
required_files="${config_file}"
command_args="-config \"${config_file}\""

depend() {
	after net
}