These are a couple of files to assist in getting Deluge running as a service (daemon) on Debian 8. There doesn't seem to be much in the way of good documentation for this online right now.
Basically, you want to follow the steps on this page, but use the scripts above, because they have
the correct user and group IDs for Debian. Also, ignore the "User Management" section,
since that is already done as part of the installation if you use apt-get
:
But in case that page goes offline, here's the very short version:
- Stop the deluged and deluge-web services if they are running
- Make sure any old
init.d
scripts for deluged/deluge-web have been deleted or moved out of the SysV init directories - Put the
deluged.service
anddeluge-web.service
files (above) into/etc/systemd/system
- Make sure they are both owned by root (
chmod root:root deluged.service
and similarly for deluge-web.service) - Make sure they both have proper permissions (
chmod 644
for both files) - Run
systemctl daemon-reload
to pick up the files and load them - Run
systemctl enable deluged.service
(have to be in /etc/systemd/system, otherwise use absolute path) systemctl start deluged
systemctl status deluged
and check for errors, correct any if found (is it already running?)systemctl enable deluge-web.service
systemctl start deluge-web
systemctl status deluge-web
(again, correct any errors, make sure you aren't running two instances at once!)- Connect to localhost:8112 to verify that it is running