Autoconnect to daemon on boot - Ubuntu

General support for problems installing or using Deluge
landor
New User
New User
Posts: 2
Joined: Wed Oct 25, 2017 7:38 pm
OS or Distro: Ubuntu

Autoconnect to daemon on boot - Ubuntu

Postby landor » Wed Oct 25, 2017 7:48 pm

Hello,

I'm running te Deluged on my Ubuntu. I have a problem with the set up the autoconnect.

I set up the host from the hottlist.

/home/user1/.config/deluge/hostlists.conf.1.2:

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "hosts": [
    [
      "6fd1f0396395b85a9a16517f23f0f3bf38270999",
      "127.0.0.1",
      58846,
      "",
      ""
    ]
  ]
}


/etc/init/deluge-web.conf:

Code: Select all

description "Deluge Web UI"
author "Deluge Team"

start on started deluged
stop on stopping deluged

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=027
"default_daemon": "6fd1f0396395b85a9a16517f23f0f3bf38270999",

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web


And on the boot:

/var/log/dmesg:

Code: Select all

[   17.138443] init: /etc/init/deluge-web.conf:19: Unknown stanza



And websevice won't start.
And of course when I comment the "default_daemon" line in the deluge-web.conf, and reboot, I'm able to connect manually to the daemon via the web.

Thanks for the help

sinaptika
Member
Member
Posts: 19
Joined: Thu Apr 27, 2017 6:23 pm
OS or Distro: Linux/Alpine,Debian

Re: Autoconnect to daemon on boot - Ubuntu

Postby sinaptika » Wed Oct 25, 2017 7:59 pm

1. Remove the line from /etc/init/deluge-web.conf
2. Stop deluge-web
3. Edit and add id in to: /home/user1/.config/deluge/deluge-web.conf :)

landor
New User
New User
Posts: 2
Joined: Wed Oct 25, 2017 7:38 pm
OS or Distro: Ubuntu

Re: Autoconnect to daemon on boot - Ubuntu

Postby landor » Wed Oct 25, 2017 8:12 pm

Not work.

now the /etc/init/deluge-web.conf:

Code: Select all

description "Deluge Web UI"
author "Deluge Team"

start on started deluged
stop on stopping deluged

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=027
#"default_daemon": "6fd1f0396395b85a9a16517f23f0f3bf38270999",

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web




The /home/user1/.config/deluge/deluge-web.conf file doesn't exist so I created one.

/home/user1/.config/deluge/deluge-web.conf:

Code: Select all

"default_daemon": "6fd1f0396395b85a9a16517f23f0f3bf38270999",



After the reboot the daemon is up, but I can able only to connect manually there from the web interface.


Return to “Support”

Who is online

Users browsing this forum: Bing [Bot] and 10 guests