summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packaging/systemd/deluge-web.service17
-rw-r--r--packaging/systemd/deluged.service19
2 files changed, 36 insertions, 0 deletions
diff --git a/packaging/systemd/deluge-web.service b/packaging/systemd/deluge-web.service
new file mode 100644
index 000000000..630485363
--- /dev/null
+++ b/packaging/systemd/deluge-web.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Deluge Bittorrent Client Web Interface
+After=network-online.target
+
+[Service]
+Type=simple
+
+User=deluge
+Group=deluge
+UMask=027
+
+ExecStart=/usr/bin/deluge-web
+
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/packaging/systemd/deluged.service b/packaging/systemd/deluged.service
new file mode 100644
index 000000000..7ef2c4a0f
--- /dev/null
+++ b/packaging/systemd/deluged.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Deluge Bittorrent Client Daemon
+After=network-online.target
+
+[Service]
+Type=simple
+User=deluge
+Group=deluge
+UMask=007
+
+ExecStart=/usr/bin/deluged -d
+
+Restart=on-failure
+
+# Configures the time to wait before service is stopped forcefully.
+TimeoutStopSec=300
+
+[Install]
+WantedBy=multi-user.target