alanwww1 Posted September 11, 2010 Report Posted September 11, 2010 I figured out a way to start utorrent in boot-time or manually start stopping it running as daemon.You need an upstart equiped linux diistro (like Ubuntu karmic, lucid ...)Here is what i did:Let assume you have a username: "yourusername"Copy the extracted files into ./home/yourusername/.utorrentCreate an upstart script config:sudo nano /etc/init/utorrent.confInsert:--------------------description "utorrent startup script"author "Alanw"start on (local-filesystems and started dbus and stopped udevtrigger)stop on runlevel [016]script cd /home/yourusername/.utorrent exec su yourusername -c "/home/yourusername/.utorrent/utserver"end script--------------------Last step is to finalize the upstart script:sudo ln -s /lib/init/upstart-job /etc/init.d/utorrentFrom this moment you can run utorrent-server as a daemon bysudo start utorrentor stop it withsudo stop utorrentAnd with next reboot you will have it automatocly started.I hope it will work for everyone.Cheers, Alan
The Mighty Buzzard Posted September 12, 2010 Report Posted September 12, 2010 Only that I'd install it in /opt and run it under its own username. Security on an alpha isn't going to be top knotch by any means, so mitigating any damage as much as possible is usually a good idea.
rurat Posted October 6, 2010 Report Posted October 6, 2010 im a bit of a noob here any assistance would be gr8running ubuntu 10.04i created the folder .utorrent in my home directory and then created and saved the scriptwhen i try to finalize the script ¨ sudo ln -s /lib/init/upstart - job /etc/init.d/utorrent¨ this is what happensln: target `/etc/init.d/utorrent' is not a directory
The Mighty Buzzard Posted October 9, 2010 Report Posted October 9, 2010 Yeah, that's bad syntax for ln. I'd tell you how to fix it but upstart and I don't care for each other and I'm less than sober enough to RTFM.
donniezazen Posted December 19, 2010 Report Posted December 19, 2010 im a bit of a noob here any assistance would be gr8running ubuntu 10.04i created the folder .utorrent in my home directory and then created and saved the scriptwhen i try to finalize the script ¨ sudo ln -s /lib/init/upstart - job /etc/init.d/utorrent¨ this is what happensln: target `/etc/init.d/utorrent' is not a directorySame problem.
simonbcn Posted March 1, 2011 Report Posted March 1, 2011 Great! It's much better and simpler than init.d scripts.Thanks
lordCONAN Posted April 8, 2011 Report Posted April 8, 2011 This works well at starting up utorrent server, but I find that when it's started using upstart, no changes made in the preference pane remain in effect after a restart. If you manually start utserver and change preference, they persist, but any changes made on an upstarted utserver aren't persistant.Anyone else have this problem?
simonbcn Posted April 8, 2011 Report Posted April 8, 2011 ....Last step is to finalize the upstart script:sudo ln -s /lib/init/upstart-job /etc/init.d/utorrent...I think that this step is unnecessary. This step is to connect old init system with the new (upstart) but, IMHO, it's unnecessary.My upstart scripts don't use this link and they works well. The only difference is that I can't start/stop/... it with "/etc/init.d/script-name start/stop/..."This works well at starting up utorrent server, but I find that when it's started using upstart, no changes made in the preference pane remain in effect after a restart. If you manually start utserver and change preference, they persist, but any changes made on an upstarted utserver aren't persistant.Anyone else have this problem?Are you executing utserver with the same user than in upstart script?
holyflower Posted April 10, 2011 Report Posted April 10, 2011 This works well at starting up utorrent server, but I find that when it's started using upstart, no changes made in the preference pane remain in effect after a restart. If you manually start utserver and change preference, they persist, but any changes made on an upstarted utserver aren't persistant.Anyone else have this problem?I have this problem too. on ubuntu 10.10 server.How i can fix this?
lordCONAN Posted April 11, 2011 Report Posted April 11, 2011 Are you executing utserver with the same user than in upstart script?Yep. No difference there.
bigbit.pt Posted November 19, 2011 Report Posted November 19, 2011 I've been having this problem also, up until I got some time to debug it.When upstart stops a job, it sends it the TERM signal - the default kill signal.If job has not stopped in the default 'kill timeout' (which is 5 seconds), it then sends the KILL signal - equivalent to kill -9 (hard kill).i.e., if within 5 seconds of TERM signal, your utserver hasn't had time to flush caches, and finally write settings.dat, all changes made in web GUI are lost - and probably some cached chunks...My solution? Set the kill timeout on the upstart job conf to something more suitable.Just drop the linekill timeout #sec-to-waitright afterstop onI've changed to 30 seconds, and seems to be doing fine../bb
Recommended Posts
Archived
This topic is now archived and is closed to further replies.