svetla wrote:

> Kolegi,
>
> imam sledniat problem..
> postoianno mi plue v log-a ei tova:
>
> ns kernel: HTB: quantum of class 10002 is big. Consider r2q change.<4>HTB:
> quantum of class 10056 is small. Consider r2q change.<6>CSLIP: code
> copyright 1989 Regents of the University of California
>
> i po vreme na rabota na server-a sled kato se pretovari zabiva...
> na kernel panic i otnovo tazi greshka..pri restart otnovo zabiva i dava pak
> po-gornoto suobshtenie...Stignah do izvoda che problema e v shaper-a ...i v
> sigle mod go spriah..nai-veroiatno naikakuv bug v HTB-to.
> Ako se chuvali ili imali takuv problem molia spodelete.
> Do tozi moment sum niamala problemi s HTB-to, no fakt e che za dva
> identichni kato configuracia serveri za 2 sedmici zabivaha 2 puti vseki..
> inache scripta na HTB classes izglejda pri men taka:
>
> #!/bin/sh
>
> TC="/sbin/tc"
>
> #This function takes three params: ip, peering trafic, internat. traffic
> limit_user() {
>    #trafic we send to the users
>    ${TC} class add dev eth0 parent 1: classid 1:$1 htb \
>        rate ${2}kbps ceil ${2}kbps
>    ${TC} class add dev eth0 parent 1: classid 1:$((256 + $1)) htb \
>        rate ${3}kbps ceil ${3}kbps
>
>    ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
>        ip dst 212.36.6.$1 match ip tos 0x40 0xff flowid 1:$((256 + $1))
>    ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
>        ip dst 212.36.6.$1 match ip tos 0x80 0xff flowid 1:$((256 + $1))
>    ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
>        ip dst 212.36.6.$1 flowid 1:$1
>
>    #traffic we send to internet
>    ${TC} class add dev eth1 parent 1: classid 1:$1 htb \
>        rate ${2}kbps ceil ${2}kbps
>    ${TC} filter add dev eth1 protocol ip parent 1:0 prio 1 u32 \
>        match ip src 212.36.6.$1 flowid 1:$1
>
> }
>
> start() {
>    echo "Starting shaper"
>    ${TC} qdisc add dev eth0 root handle 1: htb r2q 1 default 255
>    ${TC} class add dev eth0 parent 1: classid 1:255 htb rate 100Mbit ceil
> 100Mbit
>
>    ${TC} qdisc add dev eth1 root handle 1: htb default 255
>    ${TC} class add dev eth1 parent 1: classid 1:255 htb rate 4Mbit ceil
> 4Mbit
>
>    for ((i=3; i<63; i++))
>    do
>        case $i in
>            2|7|55)
>                limit_user $i 256 256
>                ;;
>            3)
>                limit_user $i 32 32
>                ;;
>            54)
>                limit_user $i 4 2
>                ;;
>            56)
>                limit_user $i 6 3
>                ;;
>            *)
>                limit_user $i 70 70
>                ;;
>        esac
>    done
> }
>
> stop () {
>    echo "Stoping shaper ..."
>    ${TC} qdisc del dev eth0 root handle 1: htb default 255
>    ${TC} qdisc del dev eth1 root handle 1: htb default 255
> }
>
> case "$1" in
>  start)
>        start
>        ;;
>  stop)
>        stop
>        ;;
>  restart)
>        stop
>        sleep 1
>        start
>        ;;
>  *)
>        echo $"Usage: $0 {start|stop|restart}"
>
> 10x predvaritelno!
>
>
>
>
>
>
>
>
>
>
>
> svetla writes:
>
> > ako ne e qmail, vij James mail server-a ...
> >
> >
> > Peter An. Zyumbilev writes:
> >
> >> kato mapisha /etc/init.d/saslauthd
> >> ne se sluchav nisto..
> >> vapreki che ima startov script
> >>
> >> #!/bin/sh -e
> >>
> >> NAME=saslauthd
> >> DAEMON="/usr/sbin/${NAME}"
> >> DESC="SASL Authentication Daemon"
> >> DEFAULTS=/etc/default/saslauthd
> >> #tova go opraviah
> >> #/etc/default/saslauthd - uncommentah start yes
> >>
> >> test -f "${DAEMON}" || exit 0
> >>
> >> # Source defaults file; edit that file to configure this script.
> >> if [ -e "${DEFAULTS}" ]; then
> >>     . "${DEFAULTS}"
> >> fi
> >>
> >> # If we're not to start the daemon, simply exit
> >> if [ "${START}" != "yes" ]; then
> >>     exit 0
> >> fi
> >>
> >> # If we have no mechanisms defined
> >> if [ "x${MECHANISMS}" = "x" ]; then
> >>     echo "You need to configure ${DEFAULTS} with mechanisms to be used"
> >>     exit 0
> >> fi
> >>
> >> # Add our mechanimsms with the necessary flag
> >> for i in ${MECHANISMS}; do
> >>     PARAMS="${PARAMS} -a ${i}"
> >> done
> >>
> >> # Consider our options
> >> case "${1}" in
> >>   start)
> >>         echo -n "Starting ${DESC}: "
> >>         start-stop-daemon --start --quiet --pidfile
> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
> >>         echo "${NAME}."
> >>         ;;
> >>   stop)
> >>         echo -n "Stopping ${DESC}: "
> >>         start-stop-daemon --stop --quiet --pidfile
> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
> >>         echo "${NAME}."
> >>         ;;
> >>   restart|force-reload)
> >>         echo -n "Restarting ${DESC}: "
> >>         start-stop-daemon --stop --quiet --pidfile
> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
> >>         sleep 1
> >>         start-stop-daemon --start --quiet --pidfile
> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
> >>         echo "${NAME}."
> >>         ;;
> >>   *)
> >>      echo "Usage: /etc/init.d/${NAME} {start|stop|restart|force-reload}"
> >>> &2
> >>         exit 1
> >>         ;;
> >> esac
> >>
> >> exit 0
> >> ################################################################
> >>
> >> ak kato si napisha kato root
> >>
> >> "saslauthd -a pam" vijdam che demona se vdiga
> >> osven courier i cyrus iam li drug svesten imap server ?
> >> Az sas cyrus-a si imam zadochen spor ot edno vreme..samo pd Suse sam go
> >> podkrval bez problemi..
> >> Ima li raboteshno resheni za virtualmail hosting za debian bez qmail
> >> +vpop ?
> >>
> >> Peter An. Zyumbilev
> >> Web Developer & Administrator
> >> BIVOL BULGARIA
> >> email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> >> tel.:+359 88 966940
> >> web: http://www.bivol.net <http://www.bivol.net/>
> >>
> >>
> >>
> >> =========================================================================
> >> ===
> >> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
> >> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
> >> Zagora
> >> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
> >> =========================================================================
> >> ===
> >
> >
> >
> > Svetlana Pesheva
> > System Administrator
> > "VMT Design"
> > contact: 098/254246
> > #48332919
> > ==========================================================================
> > ==
> > A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
> > http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
> > Zagora
> > To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
> > ==========================================================================
> > ==
>
>
> Svetlana Pesheva
> System Administrator
> "VMT Design"
> contact: 098/254246
> #48332919
> ============================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
> ============================================================================

Zdravey,
Podoben problem i az sum imal. Moje bi obache, predpostavkite sa drugi.
1. za quantum - probvay da namalish quantum na clasovete  - tova shte te
otarve:))
2. kernel panik - nay dobre si testvay RAM-a. Mnogo chesto yavlenie. Zagubih
dva dni, dokato ustanovia, che e leko defekten.

Razbira se, problemite moje da sa drugi, az ti kazvm kakvo beshe pri men.

Peyo


============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================

Reply via email to