Jun
17
2005

Need To Fix My Bittorrent Scripts!

Friday, June 17, 2005 - 11:16:13 pm
(Posted Under: Development)
So quite a while ago (maybe a year ago) I wrote this cool system, using just shell scripts, to bring programs up and down based on Alphalink usage tarrifs. Basically so I could have my downloads happen at night. Moduled largely on the SysV init system. (Which I don't overly miss *hugs Gentoo's init system*). Not soon after, I modified the bittorrent script to not kill the torrents, but suspend them when I didn't want them running. The motivation was two fold - 1) saves the md5sum checking of files every night, and 2) there was no good way to automate starting bittorrent inside of a screen - I think. Again, memory hazy!) This worked so nicely on Debian.

However, once I changed to Gentoo (November '04), which I'm sure I'll blog about when I have some time, they stopped working flawlessly. Basically it's a problem with determining the PIDs of the bittorrent process - I write 3 to a pid file, rather than one. It's really becoming a pain in the ass - each time I start a new torrent, I have to make sure the right single pid is in the pid file. Must fix when have time.

Speaking of which, I pulled down another Poison DVD (amature recording before you gasp and call your lawers! [wink] ) last night. Sweeeet.

It'd be hilarious if there were people still reading this and being able to make sense of any of the entries under 'Geek' or 'Development'! [smile] Katie, you don't count! Okay, okay honey, you do. [smile]

Post Comment



All fields are required. Email addresses will not be published, but are required for anti-spam purposas.

Switch Styles

About Style Switching.

!Weblog Index

May June 2005 Jul
SU MO TU WE TH FR SA
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

Categories

RSS FeedRSS Feed