Deluge (Ubuntu 20.04): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(21 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 15: | Zeile 15: | ||
</pre> | </pre> | ||
==== Daemon (deluged) service ==== | |||
<pre> | <pre> | ||
Zeile 41: | Zeile 42: | ||
</pre> | </pre> | ||
==== User configuration ==== | |||
<pre> | <pre> | ||
Zeile 57: | Zeile 58: | ||
Group=deluge | Group=deluge | ||
</pre> | </pre> | ||
==== Service aktivieren und starten ==== | |||
<pre> | |||
sudo systemctl enable /etc/systemd/system/deluged.service | |||
sudo systemctl restart deluged | |||
sudo systemctl status deluged | |||
</pre> | |||
=== Web UI === | |||
==== Web UI (deluge-web) service ==== | |||
<pre> | |||
sudo vi /etc/systemd/system/deluge-web.service | |||
</pre> | |||
<pre> | |||
[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 | |||
</pre> | |||
==== User configuration ==== | |||
<pre> | |||
sudo mkdir /etc/systemd/system/deluge-web.service.d/ | |||
</pre> | |||
<pre> | |||
sudo vi /etc/systemd/system/deluge-web.service.d/user.conf | |||
</pre> | |||
<pre> | |||
# Override service user | |||
[Service] | |||
User=deluge | |||
Group=deluge | |||
</pre> | |||
==== Service aktivieren und starten ==== | |||
<pre> | |||
sudo systemctl enable /etc/systemd/system/deluge-web.service | |||
sudo systemctl restart deluge-web | |||
sudo systemctl status deluge-web | |||
</pre> | |||
=== Service logging === | |||
==== Verzeichnis erstellen ==== | |||
<pre> | |||
sudo mkdir -p /var/log/deluge | |||
sudo chown -R deluge:deluge /var/log/deluge | |||
sudo chmod -R 750 /var/log/deluge | |||
</pre> | |||
==== Scripte anpassen ==== | |||
Für den Dämon <code>deluged</code>: | |||
<pre> | |||
sudo vi /etc/systemd/system/deluged.service | |||
</pre> | |||
<pre> | |||
ExecStart=/usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning --logrotate | |||
</pre> | |||
Für <code>deluge-web</code>: | |||
<pre> | |||
sudo vi /etc/systemd/system/deluge-web.service | |||
</pre> | |||
<pre> | |||
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning --logrotate | |||
</pre> | |||
==== Services neustarten ==== | |||
<pre> | |||
sudo systemctl daemon-reload | |||
sudo systemctl restart deluged | |||
sudo systemctl restart deluge-web | |||
</pre> | |||
== Testen == | |||
Das Standardpasswort ist '''deluge'''. | |||
=== Über IP === | |||
Beim Aufruf über die IP-Adresse muss der Port mit angegeben werden: | |||
<pre> | |||
http://<server ip>:8112 | |||
</pre> | |||
== Probleme == | |||
=== deluge-web: error: no such option: -d === | |||
In der Datei | |||
<pre> | |||
sudo vi /etc/systemd/system/deluge-web.service | |||
</pre> | |||
die Option<code>-d</code> entfernen. Diese Option gibt es nur bei <code>deluged</code>. | |||
=== deluged: error: no such option: --logrotate === | |||
Die Option <code>--logrotate</code>, wie auf der Webseite angegeben, gibt es nicht. | |||
== Links == | |||
[https://deluge.readthedocs.io/en/latest/how-to/systemd-service.html https://deluge.readthedocs.io/en/latest/how-to/systemd-service.html] | |||
Zurück zu [[Deluge (unterschiedliche Versionen)|Deluge]] | Zurück zu [[Deluge (unterschiedliche Versionen)|Deluge]] |
Aktuelle Version vom 24. April 2020, 12:38 Uhr
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
Daemon (deluged) service
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
User configuration
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
Web UI (deluge-web) service
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
Für den Dämon deluged
:
sudo vi /etc/systemd/system/deluged.service
ExecStart=/usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning --logrotate
Für deluge-web
:
sudo vi /etc/systemd/system/deluge-web.service
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L warning --logrotate
Services neustarten
sudo systemctl daemon-reload sudo systemctl restart deluged sudo systemctl restart deluge-web
Testen
Das Standardpasswort ist deluge.
Über IP
Beim Aufruf über die IP-Adresse muss der Port mit angegeben werden:
http://<server ip>:8112
Probleme
deluge-web: error: no such option: -d
In der Datei
sudo vi /etc/systemd/system/deluge-web.service
die Option-d
entfernen. Diese Option gibt es nur bei deluged
.
deluged: error: no such option: --logrotate
Die Option --logrotate
, wie auf der Webseite angegeben, gibt es nicht.
Links
https://deluge.readthedocs.io/en/latest/how-to/systemd-service.html
Zurück zu Deluge