Jump to content

Restart uTorrent upon reconnect


MrM

Recommended Posts

Hi,

I'm running uTorrent in Ubuntu 8.10 via wine. Since I have a dynamic IP on my ADSL, the connection gets dropped every 24 hours (by my ISP). When this happens, the system reconnects automatically within seconds, but I get assigned a different IP. Despite using a dyndns service and providing it in "IP/Hostname to report to tracker", uTorrent stops working after that and reports that the port is not connectible. If I then restart uTorrent manually, it starts working fine again.

My question is how can I stop and start uTorrent via command-line, so I can write a script and put it in /etc/ppp/ip-down.d and /etc/ppp/ip-up.d respectively. I suppose, stoping it with "killall uTorrent.exe" would be a bad idea, as it will then probably have to recheck every downloading file upon restart? As for starting it, I have no idea how to do that in a way that it will start in the active X session.

If someone has an entirely different idea for solving my problem, I will be more than happy to try it out.

Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...