RE: linux tc + contab

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maybe cron user is not a root???

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

-----Original Message-----
    From: "foxy 202"<foxy202@xxxxxxxxx>
    Sent: 05-05-23 15:50:34
    To: "LARTC"<lartc@xxxxxxxxxxxxxxx>
    Subject:  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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux