From d2dc32af312097fd9588b8d193308c7d7459a9ca Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sat, 2 Dec 2017 08:26:10 +0200 Subject: 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) --- 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 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 -- cgit v1.2.3