Last active
July 29, 2018 22:36
-
-
Save cjLGH/1903de45a2bd493f782d3ee1b256b099 to your computer and use it in GitHub Desktop.
Deluge Daemon/Web (deluged/deluge-web) Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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