]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
vnstat 2.6: New initscript
authorMatthias Fischer <matthias.fischer@ipfire.org>
Fri, 10 Apr 2020 17:17:10 +0000 (19:17 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 30 Apr 2020 14:56:15 +0000 (14:56 +0000)
Added the  new 'vnstatd' daemon to 'start' and 'stop' section.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/system/vnstat

index 363307013ddbcd99b1a57dfd4531abda8d8e880e..bcc19c3ab2c8bb6fd5c97a3095f7ee0d1438b5e3 100755 (executable)
@@ -17,15 +17,28 @@ case "$1" in
                        mount_ramdisk "${VNSTATLOG}"
                        evaluate_retval
                fi
+
+               boot_mesg "Starting vnstatd..."
+               loadproc /usr/sbin/vnstatd -d --alwaysadd
+               sleep 2
+               evaluate_retval
                ;;
+
        stop)
+               boot_mesg "Stopping vnstatd..."
+               killproc /usr/sbin/vnstatd
+               sleep 2
+               evaluate_retval
+
                umount_ramdisk "${VNSTATLOG}"
                ;;
+
        restart)
                ${0} stop
                sleep 1
                ${0} start
                ;;
+
        backup)
                # Backup all data if ramdisk is used
                if mountpoint "${RRDLOG}" &>/dev/null; then