Deluge (Ubuntu 20.04)
Version vom 24. April 2020, 12:03 Uhr von Martin Kirner (Diskussion | Beiträge) (→Verzeichnis erstellen)
Installation
sudo apt-get install -y deluge deluged deluge-web
Konfiguration
systemd
System-Benutzer anlegen
sudo adduser --system --gecos "Deluge Service" --disabled-password --group --home /var/lib/deluge deluge
?
sudo vi /etc/systemd/system/deluged.service
[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
?
sudo mkdir /etc/systemd/system/deluged.service.d/
sudo vi /etc/systemd/system/deluged.service.d/user.conf
# Override service user [Service] User=deluge Group=deluge
Service aktivieren und starten
sudo systemctl enable /etc/systemd/system/deluged.service sudo systemctl restart deluged sudo systemctl status deluged
Web UI
?
sudo vi /etc/systemd/system/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 UMask=027 ExecStart=/usr/bin/deluge-web Restart=on-failure [Install] WantedBy=multi-user.target
User configuration
sudo mkdir /etc/systemd/system/deluge-web.service.d/
sudo vi /etc/systemd/system/deluge-web.service.d/user.conf
# Override service user [Service] User=deluge Group=deluge
Service aktivieren und starten
sudo systemctl enable /etc/systemd/system/deluge-web.service sudo systemctl restart deluge-web sudo systemctl status deluge-web
Service logging
Verzeichnis erstellen
sudo mkdir -p /var/log/deluge sudo chown -R deluge:deluge /var/log/deluge sudo chmod -R 750 /var/log/deluge
Scripte anpassen
sudo vi /etc/systemd/system/deluged.service
ExecStart=/usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning
Services neustarten
sudo systemctl daemon-reload sudo systemctl restart deluged sudo systemctl restart deluge-web
Zurück zu Deluge