deluge-web won't start via systemd
Posted: Mon Apr 23, 2018 6:43 pm
Hi all,
I've probably missed something obvious (sorry), but I'm really struggling to get deluge-web to start via systemd on an Ubuntu 17.10 system. I've installed the dev version of deluged and deluge-web and followed https://dev.deluge-torrent.org/wiki/Use ... ce/systemd which works fine for the main deluged but not for -web.
My upstart file is:
phoenix@athos:/lib/systemd/system$ cat deluge-web.service
[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=network-online.target deluged.service
Wants=deluged.service
[Service]
Type=simple
User=deluge
Group=deluge
UMask=027
# This 5 second delay is necessary on some systems
# to ensure deluged has been fully started
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning
Restart=on-failure
[Install]
WantedBy=multi-user.target
However when I start this, it just terminates with no output
phoenix@athos:/lib/systemd/system$ sudo systemctl enable deluge-web.service
Created symlink /etc/systemd/system/multi-user.target.wants/deluge-web.service → /lib/systemd/system/deluge-web.service.
phoenix@athos:/lib/systemd/system$ sudo systemctl start deluge-web.service
phoenix@athos:/lib/systemd/system$ sudo systemctl status deluge-web.service
● deluge-web.service - Deluge Bittorrent Client Web Interface
Loaded: loaded (/lib/systemd/system/deluge-web.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2018-04-23 19:34:24 BST; 3s ago
Docs: man:deluge-web
Process: 10775 ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning (code=exited, status=0/SUCCESS)
Process: 10769 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS)
Main PID: 10775 (code=exited, status=0/SUCCESS)
CPU: 187ms
Apr 23 19:34:19 athos systemd[1]: Starting Deluge Bittorrent Client Web Interface...
Apr 23 19:34:24 athos systemd[1]: Started Deluge Bittorrent Client Web Interface.
There is nothing in the log file:
phoenix@athos:/lib/systemd/system$ sudo ls -l /var/log/deluge/
total 4
-rw-rw---- 1 deluge deluge 450 Apr 23 09:43 daemon.log
-rw-r----- 1 deluge deluge 0 Apr 23 19:34 web.log
The home folder /var/lib/deluge/.config etc. is owned by the deluge user and all looks OK.
If I su to the deluge user (I've temporarily given it a shell that isn't /bin/false) then it runs and works fine:
phoenix@athos:/lib/systemd/system$ sudo su - deluge
deluge@athos:~$ /usr/bin/deluge-web -l /var/log/deluge/web.log -L warning
deluge@athos:~$ ps aux | grep deluge-web
deluge 10838 1.6 0.2 155404 44508 ? S 19:36 0:00 deluge-web
and the web interface works fine. Any thoughts on what I've missed?
I've probably missed something obvious (sorry), but I'm really struggling to get deluge-web to start via systemd on an Ubuntu 17.10 system. I've installed the dev version of deluged and deluge-web and followed https://dev.deluge-torrent.org/wiki/Use ... ce/systemd which works fine for the main deluged but not for -web.
My upstart file is:
phoenix@athos:/lib/systemd/system$ cat deluge-web.service
[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=network-online.target deluged.service
Wants=deluged.service
[Service]
Type=simple
User=deluge
Group=deluge
UMask=027
# This 5 second delay is necessary on some systems
# to ensure deluged has been fully started
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning
Restart=on-failure
[Install]
WantedBy=multi-user.target
However when I start this, it just terminates with no output
phoenix@athos:/lib/systemd/system$ sudo systemctl enable deluge-web.service
Created symlink /etc/systemd/system/multi-user.target.wants/deluge-web.service → /lib/systemd/system/deluge-web.service.
phoenix@athos:/lib/systemd/system$ sudo systemctl start deluge-web.service
phoenix@athos:/lib/systemd/system$ sudo systemctl status deluge-web.service
● deluge-web.service - Deluge Bittorrent Client Web Interface
Loaded: loaded (/lib/systemd/system/deluge-web.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2018-04-23 19:34:24 BST; 3s ago
Docs: man:deluge-web
Process: 10775 ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning (code=exited, status=0/SUCCESS)
Process: 10769 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS)
Main PID: 10775 (code=exited, status=0/SUCCESS)
CPU: 187ms
Apr 23 19:34:19 athos systemd[1]: Starting Deluge Bittorrent Client Web Interface...
Apr 23 19:34:24 athos systemd[1]: Started Deluge Bittorrent Client Web Interface.
There is nothing in the log file:
phoenix@athos:/lib/systemd/system$ sudo ls -l /var/log/deluge/
total 4
-rw-rw---- 1 deluge deluge 450 Apr 23 09:43 daemon.log
-rw-r----- 1 deluge deluge 0 Apr 23 19:34 web.log
The home folder /var/lib/deluge/.config etc. is owned by the deluge user and all looks OK.
If I su to the deluge user (I've temporarily given it a shell that isn't /bin/false) then it runs and works fine:
phoenix@athos:/lib/systemd/system$ sudo su - deluge
deluge@athos:~$ /usr/bin/deluge-web -l /var/log/deluge/web.log -L warning
deluge@athos:~$ ps aux | grep deluge-web
deluge 10838 1.6 0.2 155404 44508 ? S 19:36 0:00 deluge-web
and the web interface works fine. Any thoughts on what I've missed?