Friday, September 16, 2011

utorrent server linux startup script

Here's a linux utorrent script so you can start utorrent server like a service on linux machines!

Currently tested working on ubuntu and debian systems but should work on most linux boxes.

11 comments:

Leandro said...

Great script. I've installed on ubuntu oneiric. Let's see how it goes.

Thanks

vortex-5 said...

Hi since you've looking at this one if you're on ubuntu I wrote a better one to use Upstart.

http://vortex-5.blogspot.com/2011/10/utorrent-upstart-script.html

I believe these ones are installed to /etc/init/

The script is a conf script.

Upstart handles the state of the program and is more fault tolerant. Upstart is Ubuntu's new way of doing things and as you can tell it's simpler

vortex-5 said...

Upstart scripts are run via:

service servicename (start|stop|restart)

Leandro said...

Ok. Thanks. Should I just copy it to there, or there a commanda to 'install' the service (like update-rc.d) ?

vortex-5 said...

I don't think it's required for upstart.

just copy it and check to see if it starts. (make sure to set the path before you do)

Anonymous said...

"service utorrent does not support chkconfig" on Fedora 14. Any ideas?

vortex-5 said...

Is this happening when you try and install the RC.d script or when you try and run the command?

TechLife said...

When I try to install the script:

# chkconfig --add utorrent
service utorrent does not support chkconfig

TechLife said...

I figured it out. I added the following to the beginning of the script and was good:

#!/bin/sh
#
### BEGIN INIT INFO
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO


I know there are several other ways to do this, but I chose this one. ;)

vortex-5 said...

interresting Fedora must require the INIT section where debian is optional.

For Ubuntu users the upstart version of this script makes much more sense and is simpler.

Virtual Edge said...

I must say, that Torrent is one of the most famous and used places on the web. The way they provide Free Data, and the popularity and Respect they have earned in these years, is really unbelievable. Officially they are illegal. but they are kind of Robin Hood type. Who takes paid things from the providers and make them available to the public for Free.
Virtual Edge

Hobbies

I need new hobbies. Two years into COVID-19 my hobby became everything COVID related everything from keeping up with the latest restriction...