You are not logged in.
I got a seed box, and have it throttled so that people can use the internet while it's working. But is it possible to control it through scripts, so that crontab can toggle it from throttled/unthrottled at night, when nobody uses the internet. One could maybe kill rtorrent and start it again with another configuration file, although that would be highly impractical!
Last edited by hatten (2010-02-13 12:06:08)
Offline
You can schedule download rates:
Scheduling download rate
schedule = throttle_1,01:00:00,24:00:00,download_rate=0 schedule = throttle_2,05:00:00,24:00:00,download_rate=25
Every day "throttle_1" gets triggered at 01:00 and sets the download rate to unlimited, while "throttle_2" sets it to 25kb at 05:00. Using this the client may be made to perform a somewhat crude form of bandwidth scheduling.
Offline
rTorrent also has an XML-RPC interface, so you might want to look into that.
Offline
@AlexS; perfect. Thanks a lot.
@Barrucadu; Too complicated =p
Offline
Personally I find a set of PHP scripts + cron a *lot* more understandable than the cryptic `schedule` syntax
Offline
Personally I find a set of PHP scripts + cron a *lot* more understandable than the cryptic `schedule` syntax
LOL
But it's not cryptic at all actually, it's very simple:
The first parameter is an identifier. It can be anything you want, it just needs to be unique.
The second parameter is when to start the command. It can be a relative time (like five 5 seconds after launching rtorrent), or an absolute time, like in the given example.
The third parameter is the interval at which to run the command. In the given example, every 24 hours.
The fourth parameter is the command itself. In the given example, setting the download rate.
Offline