summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-statistics/root/etc/init.d/luci_statistics8
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/luci-statistics/root/etc/init.d/luci_statistics b/applications/luci-statistics/root/etc/init.d/luci_statistics
index 68a5cf97a..54faa411d 100644
--- a/applications/luci-statistics/root/etc/init.d/luci_statistics
+++ b/applications/luci-statistics/root/etc/init.d/luci_statistics
@@ -18,3 +18,11 @@ start() {
ln -s ${imagepath:-/tmp/rrdimg}/ /www/rrdimg
fi
}
+
+restart() {
+ ### regenerate config / prepare environment
+ start()
+
+ ### restart collectd
+ /etc/init.d/collectd restart
+}