app-admin/fluentd: fix init script
authorWilliam Hubbs <williamh@gentoo.org>
Tue, 10 Apr 2018 01:40:45 +0000 (20:40 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Tue, 10 Apr 2018 01:40:45 +0000 (20:40 -0500)
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

index c3e4a41f7deb2c3d0f5cfcee92023ab857b9db3e..ecbd10e0622ac4ef9d0c566078ce207cab8c8398 100644 (file)
@@ -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
 }