summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/root/etc/init.d
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-06-08 21:59:51 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-06-08 21:59:51 +0000
commitcb3ed9f2268c8dd48d6cb0b6b060d4adbf0754db (patch)
tree2dad91a5704c022c95b237943d180015999e829f /applications/luci-statistics/root/etc/init.d
parentde2e0ce10cb60d690da63c018f2162b47ef96141 (diff)
* luci/statistics: implement reload action in init script
Diffstat (limited to 'applications/luci-statistics/root/etc/init.d')
-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 68a5cf97a5..54faa411db 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
+}