summaryrefslogtreecommitdiff
path: root/app-metrics/grok_exporter/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-01-22 10:09:44 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-01-22 10:09:44 +0000
commit09351e78166b5e864197c4456ebae3f89dd0bed9 (patch)
tree41a96399f56ed3aa399006871bfce4430db84aa2 /app-metrics/grok_exporter/files
parentc8a77dfe4d3d307c1d5dd2650b7297447d8b609d (diff)
gentoo resync : 22.01.2019
Diffstat (limited to 'app-metrics/grok_exporter/files')
-rw-r--r--app-metrics/grok_exporter/files/grok_exporter.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-metrics/grok_exporter/files/grok_exporter.initd b/app-metrics/grok_exporter/files/grok_exporter.initd
new file mode 100644
index 000000000000..d38d0af63ab3
--- /dev/null
+++ b/app-metrics/grok_exporter/files/grok_exporter.initd
@@ -0,0 +1,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
+}