All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] linux tc + contab
@ 2005-05-23 13:50 foxy 202
  2005-05-23 14:07 ` Arkadiusz Binder
  0 siblings, 1 reply; 2+ messages in thread
From: foxy 202 @ 2005-05-23 13:50 UTC (permalink / raw)
  To: lartc

Hi I have strange problem. 
  same traffic control rules when i started it manual they work OK,
but when i started it from crontab  / twice per day / doesn't work
correctly ... look like  delete rules doesn't work
  ... any ideas where to look for problem ?
i use debian sarge  Linux  2.6 kernel , 




#!/bin/bash

TC=/sbin/tc
DEV=eth1

echo "Delete all rules"
$TC qdisc del dev $DEV root
echo "Add new root rule"
$TC qdisc add dev $DEV root handle 1: htb default 101

echo "lavel I - main tc rules"
$TC class add dev $DEV parent 1: classid 1:2 htb rate 1mbit ceil 1mbit
  prio   3
$TC class add dev $DEV parent 1: classid 1:3 htb rate 1mbit ceil 1mbit prio   1
$TC class add dev $DEV parent 1: classid 1:4 htb rate 10mbit ceil
10mbit prio   4
$TC class add dev $DEV parent 1: classid 1:101 htb rate 1kbit ceil 1kbit prio 4
................................
.......................


Regards
emil
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [LARTC] linux tc + contab
  2005-05-23 13:50 [LARTC] linux tc + contab foxy 202
@ 2005-05-23 14:07 ` Arkadiusz Binder
  0 siblings, 0 replies; 2+ messages in thread
From: Arkadiusz Binder @ 2005-05-23 14:07 UTC (permalink / raw)
  To: lartc

Maybe cron user is not a root???

Maybe you need different shell in top of yous script???

-----Original Message-----
    From: "foxy 202"<foxy202@gmail.com>
    Sent: 05-05-23 15:50:34
    To: "LARTC"<lartc@mailman.ds9a.nl>
    Subject: [LARTC] linux tc + contab
      Hi I have strange problem. 
      same traffic control rules when i started it manual they work OK,
    but when i started it from crontab  / twice per day / doesn't work
    correctly ... look like  delete rules doesn't work
      ... any ideas where to look for problem ?
    i use debian sarge  Linux  2.6 kernel , 
    
    
    
    
    #!/bin/bash
    
    TC=/sbin/tc
    DEV=eth1
    
    echo "Delete all rules"
    $TC qdisc del dev $DEV root
    echo "Add new root rule"
    $TC qdisc add dev $DEV root handle 1: htb default 101
    
    echo "lavel I - main tc rules"
    $TC class add dev $DEV parent 1: classid 1:2 htb rate 1mbit ceil 1mbit
      prio   3
    $TC class add dev $DEV parent 1: classid 1:3 htb rate 1mbit ceil 1mbit prio   1
        

[Message truncated. Tap Edit->Mark for Download to get remaining portion.]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-23 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23 13:50 [LARTC] linux tc + contab foxy 202
2005-05-23 14:07 ` Arkadiusz Binder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.