]> 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 363307013ddbcd99b1a57dfd4531abda8d8e880e..0cef59a603235ceb62020085f4185ef249c0d36d 100755 (executable)
@@ -17,15 +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
@@ -34,7 +48,7 @@ case "$1" in
                ;;
 
        *)
-               echo "Usage: $0 {start|stop|restart|backup}"
+               echo "Usage: $0 {start|stop|restart|status|backup}"
                exit 1
                ;;
 esac