diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-08 21:59:51 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-08 21:59:51 +0000 |
commit | cb3ed9f2268c8dd48d6cb0b6b060d4adbf0754db (patch) | |
tree | 2dad91a5704c022c95b237943d180015999e829f /applications/luci-statistics | |
parent | de2e0ce10cb60d690da63c018f2162b47ef96141 (diff) |
* luci/statistics: implement reload action in init script
Diffstat (limited to 'applications/luci-statistics')
-rw-r--r-- | applications/luci-statistics/root/etc/init.d/luci_statistics | 8 |
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 +} |