Change watch-dir frequency/interval?
-
- Posts: 17
- Joined: Fri Nov 06, 2009 1:39 pm
Change watch-dir frequency/interval?
Title says it all. I've searched and I've searched and haven't found a way to do this. Right now it appears watch-dir has Transmission checking that directory every few seconds. I'd like to set it to once every 15 minutes, maybe even an hour. Is this doable?
Re: Change watch-dir frequency/interval?
No.
It is hard-coded (#define WATCHDIR_POLL_INTERVAL_SECS 10).
It is hard-coded (#define WATCHDIR_POLL_INTERVAL_SECS 10).
Re: Change watch-dir frequency/interval?
On Linux/Unix systems it is usually done by putting an event-trigger on the file system itself. Any change of a file or dir should trigger an event that is handled by the application. Is the hardcoded stuff only meant for Windows?
Oh, and @Headcase_Fargone: Don't crosspost and continue here: Option to change watch-dir interval
Oh, and @Headcase_Fargone: Don't crosspost and continue here: Option to change watch-dir interval
Re: Change watch-dir frequency/interval?
Wrong, in Linux you need a kernel version equal or newer than 2.6.13 AND to enable inotify on that kernel; he obviously doesn't have met those conditions and therefore is watching his daemon poll. On Unix... there are too many versions to generalize. As for Windows very few people use Transmission on Windows, much less the daemon, so your comment is just an uninformed guess.killemov wrote:On Linux/Unix systems it is usually done by putting an event-trigger on the file system itself. Any change of a file or dir should trigger an event that is handled by the application. Is the hardcoded stuff only meant for Windows?
He is not cross-posting, he asked here, then made a request for enhancement in the correct forum.Oh, and @Headcase_Fargone: Don't crosspost and continue here: Option to change watch-dir interval
-
- Posts: 17
- Joined: Fri Nov 06, 2009 1:39 pm
Re: Change watch-dir frequency/interval?
I'm very new to Linux so inotify is a new one to me. I'll do some reading on it. Do I need to do anything specific to get Transmission set up to use it?
Re: Change watch-dir frequency/interval?
Not really, its auto-configured (i.e. the configure script is supposed to be able to tell if you have it), but in any case there is a configure parameter:Headcase_Fargone wrote:Do I need to do anything specific to get Transmission set up to use it?
Code: Select all
--with-inotify Enable inotify support (default=auto)
Is your kernel recent? try:
Code: Select all
uname -a
Code: Select all
$ grep -i inotify /usr/src/linux/.config
CONFIG_INOTIFY=y
CONFIG_INOTIFY_USER=y
-
- Posts: 133
- Joined: Tue Mar 13, 2007 6:34 pm
Re: Change watch-dir frequency/interval?
out of curiosity, does the os x version use timed polling or file system notification? cheers.