* luci/statistics: implement reload action in init script
[project/luci.git] / 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
 }
+
+restart() {
+        ### regenerate config / prepare environment
+        start()
+
+        ### restart collectd
+        /etc/init.d/collectd restart
+}