git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2dc60d2
)
luci-app-statistics: set logfile as first item in collectd.conf
author
Hannu Nyman
<redacted>
Sun, 2 Jul 2017 20:22:26 +0000
(23:22 +0300)
committer
Hannu Nyman
<redacted>
Sun, 2 Jul 2017 20:22:26 +0000
(23:22 +0300)
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 <redacted>
applications/luci-app-statistics/root/usr/bin/stat-genconfig
patch
|
blob
|
history
diff --git
a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index 090344cee4642063d6d68c5521869988d045a945..f92ee2a6e94cd3127c8530abd2a0474d2c98104d 100755
(executable)
--- 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
git clone https://git.99rst.org/PROJECT