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.dscripts for deluged/deluge-web have been deleted or moved out of the SysV init directories - Put the
deluged.serviceanddeluge-web.servicefiles (above) into/etc/systemd/system - Make sure they are both owned by root (
chmod root:root deluged.serviceand similarly for deluge-web.service) - Make sure they both have proper permissions (
chmod 644for both files) - Run
systemctl daemon-reloadto 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 delugedsystemctl status delugedand check for errors, correct any if found (is it already running?)systemctl enable deluge-web.servicesystemctl start deluge-websystemctl 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