From: Hannu Nyman Date: Sat, 2 Dec 2017 06:26:10 +0000 (+0200) Subject: luci-app-statistics: set logfile as first item in collectd.conf X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d2dc32af312097fd9588b8d193308c7d7459a9ca;p=oweals%2Fluci.git 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 Signed-off-by: Hannu Nyman (cherry picked from commit afa7a14cafd9e6c29f7ba1e3f56fc232e5849503) --- diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index 93f071e3f..41482ea46 100755 --- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig @@ -467,8 +467,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