diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-07-02 23:22:26 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2017-07-02 23:22:26 +0300 |
commit | afa7a14cafd9e6c29f7ba1e3f56fc232e5849503 (patch) | |
tree | 3b00307f0828a671407de2a3348b5aed625be138 /applications/luci-app-statistics/root/usr/bin | |
parent | 2dc60d2b440564b1e8ed4497fe841706354ca539 (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/luci-app-statistics/root/usr/bin')
-rwxr-xr-x | applications/luci-app-statistics/root/usr/bin/stat-genconfig | 4 |
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 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 |