Followed this guide: https://pimylifeup.com/raspberry-pi-deluge/
Running "deluged" and "deluge-web -f" from the command line works perfectly.
Adding the systemctl services doesn't work. Deluge exits (successfully) immediately:
Code: Select all
● deluged.service - Deluge Daemon
Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2023-04-06 09:36:43 BST; 5min ago
Process: 3886 ExecStart=/usr/bin/deluged -L debug -l /home/pi/deluged.log (code=exited, status=0/SUCCESS)
Main PID: 3886 (code=exited, status=0/SUCCESS)
CPU: 934ms
Apr 06 09:36:42 influxssd systemd[1]: Started Deluge Daemon.
Apr 06 09:36:43 influxssd systemd[1]: deluged.service: Succeeded.
Code: Select all
-rw-rw-rw- 1 pi pi 0 Apr 6 09:36 deluged.log
I don't understand why deluged works from the command line, but not via systemctl. The service file is very similar to that given in the documentation:
Code: Select all
[Unit]
Description=Deluge Daemon
After=network-online.target
[Service]
Type=simple
User=pi
Group=pi
UMask=007
ExecStart=/usr/bin/deluged
Restart=on-failure
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target