You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-metrics/grok_exporter/files/grok_exporter.initd

19 lines
582 B

#!/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
}