Files
openwrt-image-buildomatic/configs/rpi-4-files/usr/bin/luci-stats-reset
Mads Meisner-Jensen 8fbd35b18d rpi-4: add luci-stats-reset script
When tinkering with luci-statistics/collectd and after changing
RRD config values of /etc/config/luci_statistics and collectd,
this script can be used to delete ALL collected statistics and
restart luci-statistics and collectd
2021-05-15 15:04:49 +02:00

12 lines
318 B
Bash
Executable File

#!/bin/sh
# Delete ALL collected statistics and restart luci-statistics and collectd
# Useful after changing RRD config values of /etc/config/luci_statistics
/etc/init.d/luci_statistics stop
/etc/init.d/collectd stop
rm -rf /tmp/collectd.conf /tmp/rrd/*
/etc/init.d/collectd start
/etc/init.d/luci_statistics start