From cb3ed9f2268c8dd48d6cb0b6b060d4adbf0754db Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 8 Jun 2008 21:59:51 +0000 Subject: * luci/statistics: implement reload action in init script --- applications/luci-statistics/root/etc/init.d/luci_statistics | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'applications/luci-statistics/root/etc/init.d') 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 +} -- cgit v1.2.3