Code: Select all
[Unit]
Description=Deluge Bittorrent Client Daemon
Documentation=man:deluged
After=network-online.target
[Service]
Type=simple
UMask=007
ExecStart=/usr/bin/deluged -d
Restart=on-failure
# Time to wait before forcefully stopped.
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target
Code: Select all
pi@raspberrypi:/ $ sudo systemctl status deluged
● deluged.service - Deluge Bittorrent Client Daemon
Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/deluged.service.d
└─user.conf
Active: active (exited) since Fri 2019-12-06 07:22:55 GMT; 2h 42min ago
Docs: man:deluged
Memory: 0B
CGroup: /system.slice/deluged.service
Dec 06 07:22:54 raspberrypi systemd[1]: Starting LSB: Start or stop the Deluge BitTorrent daemon....
Dec 06 07:22:55 raspberrypi deluged[451]: Starting Deluge BitTorrent Daemon: deluged Not starting Deluge BitTorrent Daemon deluged, disabled in /etc/default/deluged.
Dec 06 07:22:55 raspberrypi systemd[1]: Started LSB: Start or stop the Deluge BitTorrent daemon..
Code: Select all
Failed to connect to 127.0.0.1:58846 with reason: Connection refused
What am I doing wrong?
EDIT:
Also, when I try to restart the service, this i what happens:
Code: Select all
pi@raspberrypi:/ $ systemctl restart deluged.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'deluged.service'.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to restart deluged.service: Access denied
See system logs and 'systemctl status deluged.service' for details.