summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/fluentd/files/fluentd-1.2.6.initd')
-rw-r--r--app-admin/fluentd/files/fluentd-1.2.6.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-admin/fluentd/files/fluentd-1.2.6.initd b/app-admin/fluentd/files/fluentd-1.2.6.initd
new file mode 100644
index 000000000000..f2019e3e116a
--- /dev/null
+++ b/app-admin/fluentd/files/fluentd-1.2.6.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2018 Sony Interactive Entertainment
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/bin/fluentd
+logfile=/var/log/fluentd/fluent.log
+pidfile=/var/run/fluentd.pid
+command_args="--daemon ${pidfile} --no-supervisor -o ${logfile} ${fluentd_opts}"
+command_background=yes
+command_user=fluentd:fluentd
+retry="TERM/10/KILL/30"
+
+start_pre() {
+ fluentd -q --dry-run
+}