Page 1 of 1

SOLVED: Set watch-dir in the daemon

Posted: Fri May 15, 2009 1:43 am
by jdarias
Got transmission-daemon from the ppa http://ppa.launchpad.net/transmissionbt/ppa/ubuntu.
I have a daemon running, but i want to set a folder for it to watch for torrents.
How do i do it?

Is it possible to set it in settings.json?

Re: Set watch-dir in the daemon. How to?

Posted: Fri May 15, 2009 5:07 pm
by rb07
jdarias wrote:I have a daemon running, but i want to set a folder for it to watch for torrents.
How do i do it?
If you have version 1.61 (and1.60 but it didn't work for me) then you can add to the daemon parameters:
-c directory
Directory to watch for new .torrent files to be added. As they
are added to this directory, the daemon will load them into
Transmission.
and create the directory before you start the daemon.
Is it possible to set it in settings.json?
I guess yes, I have:

Code: Select all

    "watch-dir": "\/opt\/var\/transmission\/torrentwatch\/", 
    "watch-dir-enabled": true
Those are the last 2 lines, that's why it ends w/o a comma.

Don't forget to create the directory with permissions that allow the daemon to read the files you put there. The files seem to stay there, the daemon only detects when they are added.

Re: Set watch-dir in the daemon. How to?

Posted: Sun May 17, 2009 4:50 pm
by jdarias
Thank you very much!
My daemon starts from an init.d script, so i don't know how to set the command line parameter. I had some trouble before because of the commas as I as unaware of them, but your settings.json indication worked beautifully!