SOLVED: Set watch-dir in the daemon

Discussion of Transmission that doesn't fit in the other categories
Post Reply
jdarias
Posts: 21
Joined: Tue May 13, 2008 2:31 pm

SOLVED: Set watch-dir in the daemon

Post 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?
Last edited by jdarias on Sun May 17, 2009 5:08 pm, edited 1 time in total.
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

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

Post 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.
jdarias
Posts: 21
Joined: Tue May 13, 2008 2:31 pm

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

Post 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!
Post Reply