]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/system/vnstat
vnstat 2.6: Added status section for initscript
[people/pmueller/ipfire-2.x.git] / src / initscripts / system / vnstat
index 999307d9971a81f3b5a523734c07bb55a1a11291..c1bb2942a897e0a4acab344c8e2c128d4542f958 100755 (executable)
@@ -39,6 +39,10 @@ case "$1" in
                ${0} start
                ;;
 
+       status)
+               statusproc /usr/sbin/vnstatd
+               ;;
+
        backup)
                # Backup all data if ramdisk is used
                if mountpoint "${RRDLOG}" &>/dev/null; then
@@ -47,7 +51,7 @@ case "$1" in
                ;;
 
        *)
-               echo "Usage: $0 {start|stop|restart|backup}"
+               echo "Usage: $0 {start|stop|restart|status|backup}"
                exit 1
                ;;
 esac