Re: Start rtorrent on bootup in Squeeze

2011-07-05 Thread William Hopkins
On 07/04/11 at 04:55pm, Nicolas Bercher wrote: > On 04/07/2011 13:25, Ramon Hofer wrote: > >Wow, this really is perfect! > >I did what you told me and it works like a charm :-) > > Thank you! > Indeed, it's a great pleasure for me to share this script! When I > wrote it, I was particularly proud

Re: Start rtorrent on bootup in Squeeze

2011-07-05 Thread Ramon Hofer
On Mon, 04 Jul 2011 18:11:50 -0400, Joey Hess wrote: > Nicolas Bercher wrote: >> 2. since I like to track my scripts & configs, I massively use git >> and/or svn and I really love the "one file per functionnality" way of >> manipulating things. Via crontab, everything is just mixed up into >> /va

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Yordan Radunchev
On Mon, Jul 04, 2011 at 11:36:34PM +0200, Nicolas Bercher wrote: > On 04/07/2011 19:17, Joey Hess wrote: > > That is unnecessarily complicated. You can instead use an @reboot > > cron job, which can be set up using crontab -e by any user without > > root. For example: > > > > @reboot screen -d -m

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Nicolas Bercher
On 05/07/2011 00:11, Joey Hess wrote: I keep my user crontabs in ~/.cron/$user/$hostname and only change those files then feed to cron. This allows keeping them in git and eg, pushing crontab changes out to machines. This is really cool, I thought about something like that but didn't spent the ti

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Joey Hess
Nicolas Bercher wrote: > I can actually see two little cons: > 1. no "easy way" to stop rtorrent, but that's not a big deal (any > kill/pkill command could do the job for example, just like my script > does it), Or screen -R and press Q or whatever it is. > 2. since I like to track my scripts &

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Nicolas Bercher
On 04/07/2011 19:17, Joey Hess wrote: That is unnecessarily complicated. You can instead use an @reboot cron job, which can be set up using crontab -e by any user without root. For example: @reboot screen -d -m -S rtorrent rtorrent OK, this sounds really interesting. I've always been thinking o

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Ramon Hofer
> That is unnecessarily complicated. You can instead use an @reboot cron > job, which can be set up using crontab -e by any user without root. For > example: > > @reboot screen -d -m -S rtorrent rtorrent I didn't know that this works too. Nice hint! Thanks alot :-) -- To UNSUBSCRIBE, email to

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Joey Hess
Nicolas Bercher wrote: > http://users.klvb-larve.org/nico/bin/bash/rtorrent-user.username > > You must copy it in /etc/init.d and more importantly name it > /etc/init.d/rtorrent-user. where is your actual > username. Hence, you can set it up for any number of users on the > same system. Then, t

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Ramon Hofer
>> Why don't you put it into the debian wiki or somewhere else? I was >> googling for such a script for several days. Like that you can share it >> even easier :-) > Don't know really, maybe I originally intented to give it to people I > know. That's an idea... Ok, didn't want to meddle in your a

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Nicolas Bercher
On 04/07/2011 18:19, Ramon Hofer wrote: Why don't you put it into the debian wiki or somewhere else? I was googling for such a script for several days. Like that you can share it even easier :-) Don't know really, maybe I originally intented to give it to people I know. That's an idea... I p

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Ramon Hofer
>> Wow, this really is perfect! >> I did what you told me and it works like a charm :-) > > Thank you! > Indeed, it's a great pleasure for me to share this script! When I wrote > it, I was particularly proud and then I polished it with the idea in > mind to be able to share it quickly. Mission d

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Nicolas Bercher
On 04/07/2011 13:25, Ramon Hofer wrote: Wow, this really is perfect! I did what you told me and it works like a charm :-) Thank you! Indeed, it's a great pleasure for me to share this script! When I wrote it, I was particularly proud and then I polished it with the idea in mind to be able to

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Ramon Hofer
>> I'd like to start rtorrent automatically when the system boots. Does >> anybody have a init.d script for that? > > I have the perfect script for you! > > Here it is: > > http://users.klvb-larve.org/nico/bin/bash/rtorrent-user.username Wow, this really is perfect! I did what you told me and i

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Nicolas Bercher
On 04/07/2011 10:15, Ramon Hofer wrote: Hi all I'd like to start rtorrent automatically when the system boots. Does anybody have a init.d script for that? I have the perfect script for you! Here it is: http://users.klvb-larve.org/nico/bin/bash/rtorrent-user.username You must copy it in /etc

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Ramon Hofer
>> I will go for the hard way and create the script if there isn't anybody >> who already has the solution to that ;-) > > I would suggest using /etc/init.d/skeleton as a template for your > script, it has included all necessary functions, you'll need just to > change it slightly That's what I wa

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread kuLa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/07/11 10:04, Ramon Hofer wrote: > Thanks for your reply. > > I know that an option is to write an init.d script that meets the LSB > requirements. But this seems very complicated to me and therefore I > wanted to know if somebody else uses rto

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread Ramon Hofer
On Mon, 04 Jul 2011 09:43:38 +0100, kuLa wrote: > On 04/07/11 09:15, Ramon Hofer wrote: >> script 'rtorrent' missing LSB tags and overrides insserv: There is a >> loop > > this line should give you and indications what is wrong, if you don't > read following file /etc/init.d/README Thanks for yo

Re: Start rtorrent on bootup in Squeeze

2011-07-04 Thread kuLa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/07/11 09:15, Ramon Hofer wrote: > script 'rtorrent' missing LSB tags and overrides insserv: There is a loop Hi there, this line should give you and indications what is wrong, if you don't read following file /etc/init.d/README - -- |_|0|_|

Start rtorrent on bootup in Squeeze

2011-07-04 Thread Ramon Hofer
Hi all I'd like to start rtorrent automatically when the system boots. Does anybody have a init.d script for that? I tried to use the one from here: http://wiki.ubuntuusers.de/wtorrent I have uploaded it to pastebin: http://pastebin.com/qN0EnTas Unfortunately I get an error when trying to add