Jump to content

jimmy898

Members
  • Content Count

    5
  • Joined

Community Reputation

0 Neutral

About jimmy898

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Sorry for the late reply. No need to check only container specific traffic, br0 it's fine too. I'm trying with the following scripts: #!/bin/bash R1=`cat /sys/class/net/br0/statistics/rx_bytes` T1=`cat /sys/class/net/br0/statistics/tx_bytes` sleep 10 R2=`cat /sys/class/net/br0/statistics/rx_bytes` T2=`cat /sys/class/net/br0/statistics/tx_bytes` TBPS=`expr $T2 - $T1` RBPS=`expr $R2 - $R1` TRTOT=`expr $TBPS + $RBPS` TOTKBPS=`expr $TRTOT / 10240` if [ $TOTKBPS -lt 300 ] then arrayStarted=true noParity=true docker restart binhex-qbittorrentvpn fi It should works!
  2. Thanks! tTo add an if condition related to network traffic is a mess or something achivable? Inviato dal mio moto g(6) plus utilizzando Tapatalk
  3. Speed drops are not so frequent, actually 1/2 in few days. Anyway in my experience a periodic restart of binhex-qbittorrentvpn container keep it much healthy and allow to avoid subdole hangs that may stay pending for hours. Sometimes is the VPN provider (Surfshark) that drop the connection, it's a great service price/quality and I'm very happy with it though. Do you have any idea how to setup the script? Thanks!
  4. The aim to perform the restart only if the traffic is low, while with high values (eg 600+ KB/s) the scrit wont start. It's crazy? Is there any simpler way to achive this? BTW thanks for the hourly script hint!!
  5. Hi everyone, I'm really noob with no idea where to start... I was thinking a way to restart a docker container (easy job, already found the script) ONLY IF the network traffic is below a defined threshold. Do you have suggestion? My need is to schedule (every hour) the restart of qbittorrent container to workaround the frequent hangs. Thanks in advance!!