You are not logged in.

#1 2016-06-08 04:01:51

chiiidog
Member
From: Florida
Registered: 2016-06-04
Posts: 11

Systemctl not working for deluge daemon

I installed deluge and I'm trying to get it set up as a headless torrent box. I've done this on my raspberry pi before and everything worked easily and flawlessly. Running "deluged" on the RPi leaves the daemon on after I disconnect from an ssh session. The equivalent of this for arch seems to be obviously using systemctl. sudo systemctl enable deluged and sudo systemctl start deluged should do the trick, but I'm unable to connect. Also, that doesn't create the required config files that are needed to login via remote. On the other hand, if I type "deluged", everything works like it's supposed to. The config files on a blank install are created and I'm able to edit them and get the system up and running remotely... Until I log out of the ssh session. Trying to use systemctl after the config files are created and everything is set up doesn't work. So I tried systemctl status deluged and sure enough, here's the output:

● deluged.service - Deluge Daemon
   Loaded: loaded (/usr/lib/systemd/system/deluged.service; enabled; vendor pres
   Active: active (running) since Tue 2016-06-07 23:41:40 EDT; 7s ago
 Main PID: 1797 (deluged)
    Tasks: 4 (limit: 512)
   CGroup: /system.slice/deluged.service
           └─1797 /usr/bin/python2 /usr/bin/deluged -d

which deluged returns /usr/bin/deluged

So why isn't systemctl working correctly??? Or what am I doing wrong?

I checked what the -d flag does on deluged and it means "Do not daemonize".. which I dont really understand the meaning of.

Offline

#2 2016-06-08 04:08:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Systemctl not working for deluge daemon

What config files are you setting up?

Everything looks fine with the systemctl output.

Offline

#3 2016-06-08 04:21:10

chiiidog
Member
From: Florida
Registered: 2016-06-04
Posts: 11

Re: Systemctl not working for deluge daemon

After installing deluge, you start the daemon and some config files are created in ~/.config/deluge. I have to edit a config file called auth and create a username and password to use on the remote control machine. Manually entering the command "deluged" creates these config files and starts the daemon correctly and I can connect. But, it kills the daemon when I log out of the ssh session. Using systemctl after installing does NOT create these config files correctly, and does NOT allow me to connect form my remote control machine. But it keeps running  (as evidenced by systemctl status) after terminating and relogging in via ssh.

Yeah, I thought my systemctl output looked correct, so I'm not sure why it isn't working correctly.

Offline

#4 2016-06-08 05:43:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Systemctl not working for deluge daemon

If you're configuring it in your home dir, it's no wonder it isn't working. It runs as the user "deluge".

Offline

#5 2016-06-08 05:58:28

chiiidog
Member
From: Florida
Registered: 2016-06-04
Posts: 11

Re: Systemctl not working for deluge daemon

I tried changing that after reading the wiki and got the same results.

Offline

Board footer

Powered by FluxBB