summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-07-02 23:22:26 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2017-07-02 23:22:26 +0300
commitafa7a14cafd9e6c29f7ba1e3f56fc232e5849503 (patch)
tree3b00307f0828a671407de2a3348b5aed625be138 /applications
parent2dc60d2b440564b1e8ed4497fe841706354ca539 (diff)
luci-app-statistics: set logfile as first item in collectd.conf
Force logfile plugin to be evaluated first so that it gets placed first in the collectd.conf file. Reference to https://collectd.org/wiki/index.php/Plugin:LogFile Fixes #1219 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications')
-rwxr-xr-xapplications/luci-app-statistics/root/usr/bin/stat-genconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index 090344cee4..f92ee2a6e9 100755
--- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
+++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
@@ -461,8 +461,10 @@ preprocess = {
section("collectd")
+section("logfile")
+
for plugin in pairs(plugins) do
- if plugin ~= "collectd" then
+ if (plugin ~= "collectd") and (plugin ~= "logfile") then
section( plugin )
end
end