[app-admin/fluentd] bump, build tested and starts, nothing else yet
This commit is contained in:
2
app-admin/fluentd/files/fluentd.confd
Normal file
2
app-admin/fluentd/files/fluentd.confd
Normal file
@@ -0,0 +1,2 @@
|
||||
# If you need to pass any extra options to fluentd, set them here.
|
||||
#fluentd_opts=""
|
||||
15
app-admin/fluentd/files/fluentd.initd
Normal file
15
app-admin/fluentd/files/fluentd.initd
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# 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="--no-supervisor -o ${logfile} ${fluentd_opts}"
|
||||
command_background=yes
|
||||
command_user=fluentd:fluentd
|
||||
retry="${retry:-TERM/10/KILL/30}"
|
||||
|
||||
start_pre() {
|
||||
fluentd -q --dry-run
|
||||
}
|
||||
11
app-admin/fluentd/files/fluentd.logrotate
Normal file
11
app-admin/fluentd/files/fluentd.logrotate
Normal file
@@ -0,0 +1,11 @@
|
||||
# /etc/logrotate.d/fluentd
|
||||
/var/log/fluentd/*log {
|
||||
su fluentd fluentd
|
||||
weekly
|
||||
rotate 6
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 664 fluentd fluentd
|
||||
}
|
||||
Reference in New Issue
Block a user