Editting settings.json

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
bound4h
Posts: 5
Joined: Wed Apr 28, 2010 2:39 pm

Editting settings.json

Post by bound4h »

I'm using the ARM Linux distro of transmission on my NAS (DNS323). I start it with:

transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon

However, I want to enable (set true) the incomplete-dir-enabled attribute in settings.json. If I edit the file using vi and save, when I restart transmission the file is overwritten. Is there a command to update the file so it survives a restart?

Thank you
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

Re: Editting settings.json

Post by Rolcol »

Either kill transmission-daemon before making any changes or signal it with SIGHUP to reload the settings while it's running. I recommend the latter.
bound4h
Posts: 5
Joined: Wed Apr 28, 2010 2:39 pm

Re: Editting settings.json

Post by bound4h »

How to signal it with SIGHUP?
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

Re: Editting settings.json

Post by Rolcol »

bound4h wrote:How to signal it with SIGHUP?
1) Make your changes to settings.json
2) kill -SIGHUP `pidof transmission-daemon`
bound4h
Posts: 5
Joined: Wed Apr 28, 2010 2:39 pm

Re: Editting settings.json

Post by bound4h »

But there are about 4 different processes for transmission running...

Code: Select all

22193 22192 nobody   S     8632  14%   0% /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon 
22194 22192 nobody   S     8632  14%   0% /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon 
22191     1 nobody   S     8632  14%   0% /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon 
22192 22191 nobody   S     8632  14%   0% /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon 
Which one? Also, when use the ` and the ` to enclose the PID, it says:

Code: Select all

root@zbackup:/mnt/HD_a2/.transmission-daemon# kill -SIGHUP `22191`
-sh: 22191: not found
sh: you need to specify whom to kill
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

Re: Editting settings.json

Post by Rolcol »

Don't add the ticks. The contents of the ticks are evaluated like commands. `pidof transmission-daemon` can either manually (by you) be replaced with the actual PID (no ticks) or you can leave the command as it is. pidof isn't a standard command, though.

Code: Select all

kill -SIGHUP 22191
Post Reply