summaryrefslogtreecommitdiff
blob: f2019e3e116a99c4b22a8685736c61e13e0ce122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}