closing deluge with kill command

General support for problems installing or using Deluge
Post Reply
username
New User
New User
Posts: 3
Joined: Thu Mar 27, 2008 10:21 am

closing deluge with kill command

Post by username »

hello, been using deluge for a while now and loving it.

my isp has the peak/offpeak download limit system, so i have set up cron so that runs deluge at 1am every morning while i'm asleep, and i proceed to close it every morning when i wake up (before 7am; the offpeak period is between 1am and 7am). on my days off, however, i sleep in :p so the bandwidth eats into the "peak" usage. i want to add "killall deluge" to cron, so it closes at 6:55 am, but i'd like to know first whether it's safe? might it corrupt any data while downloading if it's killed while writing to the disk, etc? i have a fast connection, and speeds can sometimes vary from 0.5 to 2MB/s, incase that has anything to do with it.

i know there's a built-in scheduler, but i find cron much easier to set up and modify.

thanks! :)
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: closing deluge with kill command

Post by johnnyg »

username wrote:hello, been using deluge for a while now and loving it.

my isp has the peak/offpeak download limit system, so i have set up cron so that runs deluge at 1am every morning while i'm asleep, and i proceed to close it every morning when i wake up (before 7am; the offpeak period is between 1am and 7am). on my days off, however, i sleep in :p so the bandwidth eats into the "peak" usage. i want to add "killall deluge" to cron, so it closes at 6:55 am, but i'd like to know first whether it's safe? might it corrupt any data while downloading if it's killed while writing to the disk, etc? i have a fast connection, and speeds can sometimes vary from 0.5 to 2MB/s, incase that has anything to do with it.

i know there's a built-in scheduler, but i find cron much easier to set up and modify.

thanks! :)
how is the scheduler not easy to set up?

`killall deluge` should be fine but it would be much safer to use the scheduler plugin, after all that's what it's there for.
username
New User
New User
Posts: 3
Joined: Thu Mar 27, 2008 10:21 am

Re: closing deluge with kill command

Post by username »

the scheduler involves a lot of clicking (and a lot of time, since i double-check i've got everything the way i want it), and only works in blocks of 1 hour, where cron can be tuned to the minute. also i found the scheduler didn't work sometimes, i think i read in another thread it had something to do with the regular download limit settings overriding the scheduler (can't be sure though, sorry).

so you think killall is fine to use? what if the data does become corrupt, will it corrupt the whole file, or just redownload the chunks it was working on? is "killall" the same as right-clicking the deluge tray icon, and clicking exit?
username
New User
New User
Posts: 3
Joined: Thu Mar 27, 2008 10:21 am

Re: closing deluge with kill command

Post by username »

bump ;)

i did a little reading up on the kill command (still a linux noob), and found that it sends a signal to the app you want to kill; and many apps recognize that signal and close themselves gracefully (ie, just as if i did a right-click/exit on the system tray). does deluge do this? how about version 0.6?

thanks :)
Post Reply