Page 1 of 1

Confusing config locations

Posted: Thu Jul 20, 2017 8:44 am
by krunk89
There is a small issue with the systemd tutorial at http://dev.deluge-torrent.org/wiki/User ... ce/systemd

When creating the deluge user, I think the home directory for the new user should be "/var/lib/deluged" (with a d at the end).

I also think that the directories created by the package manager might add to the confusion.
Not sure if I'm just running an old version (1.3.10), but according to "dpkg-query -L deluged", the deluged package creates
/var/lib/deluged
/var/lib/deluged/config

The second path is not used for any configuration, which is actually found in ~/.config/deluge, or /var/lib/deluge/.config/deluge.

If we have launched deluged from shell as the current user, as per your thin client tutorial at http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient. Running the daemon from the shell will create ~/.config/deluge, meaning we now have (on a pi anyway)

/var/lib/deluged/config
/var/lib/deluge/.config/deluge/
/home/pi/.config/deluge

I don't think I'm the first person to get confused because of this. https://superuser.com/questions/619261/ ... connection

Re: Confusing config locations

Posted: Wed Aug 02, 2017 4:00 pm
by shamael
The config is located in the home drive of the user launching Deluge so launching it with the pi user or with the deluge user will result in different configuration. I agree it may be clearer.

Re: Confusing config locations

Posted: Thu Aug 03, 2017 12:16 pm
by Tvich
krunk89 wrote:When creating the deluge user, I think the home directory for the new user should be "/var/lib/deluged" (with a d at the end).

Systemd guide is used for both deluged and deluge-web service. /var/lib/deluge is the logical path in this case. Having separate deluge-web and deluged config locations would probably create even more confusion?
krunk89 wrote:I also think that the directories created by the package manager might add to the confusion.
Not sure if I'm just running an old version (1.3.10), but according to "dpkg-query -L deluged", the deluged package creates
/var/lib/deluged
/var/lib/deluged/config
Can anyone check what gets created on ubuntu/debian if installing via ppa? /var/lib/deluged was probably created by mkdir /var/lib/$PACKAGE_NAME somewhere?
krunk89 wrote:I don't think I'm the first person to get confused because of this. https://superuser.com/questions/619261/ ... connection
Do you think executing deluged with -c /var/lib/deluge/ in systemd guide would prevent some of the confusion?
The fact, that you need to run deluged, deluge-web and deluge-console with -c /config/dir/ seems like a well kept secret, event though it's mentioned in the manual.