]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Revert "QoS: Start qosd immediately"
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 20 Oct 2019 20:21:23 +0000 (20:21 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 20 Oct 2019 20:21:23 +0000 (20:21 +0000)
This reverts commit 6a9bcd6c1d7ac0f8f4926a886beb8b3989227874.

config/qos/makeqosscripts.pl

index e46ad85f28b03a442a56ffe52abb9f0a9e318f5f..8a8591bbe2092b1e02fcbdd4cc1f986db7ce5f6d 100644 (file)
@@ -654,8 +654,8 @@ END
 print <<END
 
        ## STARTING COLLECTOR
-       /usr/local/bin/qosd $qossettings{'RED_DEV'} >/dev/null 2>&1
-       /usr/local/bin/qosd $qossettings{'IMQ_DEV'} >/dev/null 2>&1
+       ( sleep 10 && /usr/local/bin/qosd $qossettings{'RED_DEV'} >/dev/null 2>&1) &
+       ( sleep 10 && /usr/local/bin/qosd $qossettings{'IMQ_DEV'} >/dev/null 2>&1) &
 
        for i in \$(ls \$RRDLOG/class_*.rrd); do
                rrdtool update \$i \$(date +%s): 2>/dev/null
@@ -667,7 +667,7 @@ print <<END
   clear|stop)
        ### RESET EVERYTHING TO A KNOWN STATE
        killall qosd >/dev/null 2>&1
-
+       (sleep 3 && killall -9 qosd &>/dev/null) &
        # DELETE QDISCS
        tc qdisc del dev $qossettings{'RED_DEV'} root >/dev/null 2>&1
        tc qdisc del dev $qossettings{'RED_DEV'} ingress >/dev/null 2>&1