]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/system/vnstat
firewall: Rename GEOIPBLOCK table to LOCATIONBLOCK
[people/pmueller/ipfire-2.x.git] / src / initscripts / system / vnstat
index 518b2d7c65a99608d28a2888ffdd94d4f2e3ac87..0cef59a603235ceb62020085f4185ef249c0d36d 100755 (executable)
@@ -17,11 +17,29 @@ case "$1" in
                        mount_ramdisk "${VNSTATLOG}"
                        evaluate_retval
                fi
+
+               boot_mesg "Starting vnstatd..."
+               loadproc /usr/sbin/vnstatd -d --alwaysadd
                ;;
+
        stop)
+               boot_mesg "Stopping vnstatd..."
+               killproc /usr/sbin/vnstatd
+               evaluate_retval
+
                umount_ramdisk "${VNSTATLOG}"
                ;;
 
+       restart)
+               ${0} stop
+               sleep 1
+               ${0} start
+               ;;
+
+       status)
+               statusproc /usr/sbin/vnstatd
+               ;;
+
        backup)
                # Backup all data if ramdisk is used
                if mountpoint "${RRDLOG}" &>/dev/null; then
@@ -30,7 +48,7 @@ case "$1" in
                ;;
 
        *)
-               echo "Usage: $0 {start|stop|backup}"
+               echo "Usage: $0 {start|stop|restart|status|backup}"
                exit 1
                ;;
 esac