summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2018-04-09 20:40:45 -0500
committerWilliam Hubbs <williamh@gentoo.org>2018-04-09 20:40:45 -0500
commitce0541698d15c6f20c357a29adb55511c5d54cee (patch)
tree2baac11eab84f6bf1646d78075469ce36c6c0857 /app-admin/fluentd
parentsci-geosciences/liblas: remove from maintainer (diff)
downloadgentoo-ce0541698d15c6f20c357a29adb55511c5d54cee.tar.gz
gentoo-ce0541698d15c6f20c357a29adb55511c5d54cee.tar.bz2
gentoo-ce0541698d15c6f20c357a29adb55511c5d54cee.zip
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
Diffstat (limited to 'app-admin/fluentd')
-rw-r--r--app-admin/fluentd/files/fluentd.initd3
1 files changed, 2 insertions, 1 deletions
diff --git a/app-admin/fluentd/files/fluentd.initd b/app-admin/fluentd/files/fluentd.initd
index c3e4a41f7deb..ecbd10e0622a 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
}