* 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 68a5cf9..54faa41 100644 (file)
@@ -18,3 +18,11 @@ start() {
                ln -s ${imagepath:-/tmp/rrdimg}/ /www/rrdimg
        fi
 }
                ln -s ${imagepath:-/tmp/rrdimg}/ /www/rrdimg
        fi
 }
+
+restart() {
+        ### regenerate config / prepare environment
+        start()
+
+        ### restart collectd
+        /etc/init.d/collectd restart
+}