]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
vnstat 2.6: Added status section for initscript
authorMatthias Fischer <matthias.fischer@ipfire.org>
Sat, 11 Apr 2020 17:08:38 +0000 (19:08 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 30 Apr 2020 15:05:39 +0000 (15:05 +0000)
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
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