* luci/statistics: implement reload action in init script
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jun 2008 21:59:51 +0000 (21:59 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jun 2008 21:59:51 +0000 (21:59 +0000)
applications/luci-statistics/root/etc/init.d/luci_statistics

index 68a5cf97a5bf760f6634a7b2977b7d835d33cb9b..54faa411db6d0363710efab9f9ff67328f92b17c 100644 (file)
@@ -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
+}