commit: ce0541698d15c6f20c357a29adb55511c5d54cee
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 10 01:40:45 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Apr 10 01:40:45 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce054169
app-admin/fluentd: fix init script
Add the COMMAND_USER setting to the init script so we do not run as
root.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
app-admin/fluentd/files/fluentd.initd | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app-admin/fluentd/files/fluentd.initd
b/app-admin/fluentd/files/fluentd.initd
index c3e4a41f7de..ecbd10e0622 100644
--- a/app-admin/fluentd/files/fluentd.initd
+++ b/app-admin/fluentd/files/fluentd.initd
@@ -6,7 +6,8 @@ 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
}