summaryrefslogtreecommitdiff
path: root/app-admin/fluentd/files/fluentd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/fluentd/files/fluentd.initd')
-rw-r--r--app-admin/fluentd/files/fluentd.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/app-admin/fluentd/files/fluentd.initd b/app-admin/fluentd/files/fluentd.initd
new file mode 100644
index 000000000000..ecbd10e0622a
--- /dev/null
+++ b/app-admin/fluentd/files/fluentd.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/bin/fluentd
+pidfile=/var/run/fluentd.pid
+command_args="--daemon ${pidfile} --no-supervisor ${fluent_opts}"
+command_background=yes
+command_user=fluentd:fluentd
+
+start_pre() {
+fluentd -q --dry-run
+}