summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root/etc/init.d
AgeCommit message (Collapse)Author
2023-11-11luci-app-statistics: harden sysupgrade_backupJohn Kohl
Remove sysupgrade_backup from help. Also have it check parameters. Signed-off-by: John Kohl <jtk.git@bostonpog.org>
2023-11-11luci-app-statistics: cleanups of bad spacingJohn Kohl
Signed-off-by: John Kohl <jtk.git@bostonpog.org>
2023-10-29luci-app-statistics: Add backup/restore for RRD statisticsJohn Kohl
Add a backup/restore capability for rrd data storage in luci_statistics. The data storage is typically in /tmp and does not survive reboot or sysupgrade. This adds an option for the administrator to configure the RRD plugin, so that the RRD data are are preserved with a backup copy in the overlay file system. This works for shutdown/reboot, sysupgrade (backup config files, restore config files, and true sysupgrade). Also fix a bug where starting luci_statistics for the first time would not get a restart a running collectd: during install of the package when it is not included in the base flashed image, collectd might be started when it got installed/configured before this package gets installed/configured. So we need to check if it's running, and restart it to use the luci_statistics configuration. Signed-off-by: John Kohl <jtk.git@bostonpog.org>
2022-10-25luci-app-statistics: rewrite stat-genconfig in ucodeJo-Philipp Wich
Rewrite the collectd config generator script in ucode to remove the implicit dependency on the Lua runtime. Also move the stat-genconfig script into /usr/libexec as it isn't really a user facing executable. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-02luci-app-statistics: convert init script to procdJo-Philipp Wich
Convert init script to procd format in order to register reload triggers on /etc/config/luci_statistics. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2015-08-30statistics: remove references to Lucid from scriptsHannu Nyman
Both init.d and uci-defaults scripts included in luci-app-statistics still contained stuff related to lucid, which package was removed by https://github.com/openwrt/luci/commit/91b97bc9f625d09431dc1c753209a037d7c42fbc Changes to scripts: * init.d: lucid reference removed, /var/etc creation moved earlier (before first possible use) * uci-defaults: lucid parameters & restart removed (but busybox httpd stuff was left intact, although it might be unnecessary) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-01-08Rework LuCI build systemJo-Philipp Wich
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>