Skip to content

Instantly share code, notes, and snippets.

@cjLGH
Last active July 29, 2018 22:36
Show Gist options
  • Save cjLGH/1903de45a2bd493f782d3ee1b256b099 to your computer and use it in GitHub Desktop.
Save cjLGH/1903de45a2bd493f782d3ee1b256b099 to your computer and use it in GitHub Desktop.
Deluge Daemon/Web (deluged/deluge-web) Service

Deluge Daemon/Web Services

deluged.service - Deluge Daemon
deluge-web.service - Deluge Web

# /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
User=cjl
Group=cjl
UMask=027
# This 5 second delay is necessary on some systems
# to ensure deluged has been fully started
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L info
Restart=on-failure
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/deluged.service
[Unit]
Description=Deluge Bittorrent Client Daemon
Documentation=main:deluged
After=network-online.target media-sdb.mount media-sdc.mount
Requires=media-sdb.mount media-sdc.mount
BindsTo=media-sdb.mount media-sdc.mount
[Service]
Type=simple
User=cjl
Group=cjl
UMask=002
ExecStart=/usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning
Restart=on-failure
# Time to wait before forcefully stopped.
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment