From afa7a14cafd9e6c29f7ba1e3f56fc232e5849503 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 2 Jul 2017 23:22:26 +0300 Subject: [PATCH] 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 --- applications/luci-app-statistics/root/usr/bin/stat-genconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index 090344cee..f92ee2a6e 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 -- 2.11.0