]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
vnstat 2.6: Fix for initskript
authorMatthias Fischer <matthias.fischer@ipfire.org>
Sat, 11 Apr 2020 16:37:38 +0000 (18:37 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 30 Apr 2020 15:04:37 +0000 (15:04 +0000)
Removed 'sleep 2'

Added exit status in '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 bcc19c3ab2c8bb6fd5c97a3095f7ee0d1438b5e3..999307d9971a81f3b5a523734c07bb55a1a11291 100755 (executable)
@@ -20,17 +20,17 @@ case "$1" in
 
                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}"
+               boot_mesg "Unmounting vnstat ramdisk..."
+               evaluate_retval
                ;;
 
        restart)