summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-12-02 08:26:10 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2017-12-02 08:26:10 +0200
commitd2dc32af312097fd9588b8d193308c7d7459a9ca (patch)
tree9a009970d796dc67a7ae0a071735c344f73e9451
parenta9bddc408a3b5111bdcacf3e2402e45cd190ab49 (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 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> (cherry picked from commit afa7a14cafd9e6c29f7ba1e3f56fc232e5849503)
-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 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