]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
QoS: Start qosd immediately
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 14 Oct 2019 16:46:17 +0000 (16:46 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 14 Oct 2019 18:02:28 +0000 (18:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/qos/makeqosscripts.pl

index 5706387f6a9d59c07642a6f12e1b128acedf5369..386a6bffe5fd74573b53d3946663efeb466398c5 100644 (file)
@@ -654,8 +654,8 @@ END
 print <<END
 
        ## STARTING COLLECTOR
-       ( 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) &
+       /usr/local/bin/qosd $qossettings{'RED_DEV'} >/dev/null 2>&1
+       /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