Autoconnect to daemon on boot - Ubuntu

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

Autoconnect to daemon on boot - Ubuntu

Post by landor »

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: 41
Joined: Thu Apr 27, 2017 6:23 pm

Re: Autoconnect to daemon on boot - Ubuntu

Post by sinaptika »

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

Re: Autoconnect to daemon on boot - Ubuntu

Post by landor »

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