diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2017-03-20 20:16:50 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2017-03-20 20:16:50 +0100 |
commit | 5a3625f6cd4e2cb83d237b5e217a47c91b085791 (patch) | |
tree | 30f516586e2824f177d85ba470e55adf4576a1a6 | |
parent | [#2913] [Notifications] Fix webui passing string for port value (diff) | |
download | deluge-5a3625f6cd4e2cb83d237b5e217a47c91b085791.tar.xz deluge-5a3625f6cd4e2cb83d237b5e217a47c91b085791.zip |
Add systemd service files to packaging dir
-rw-r--r-- | packaging/systemd/deluge-web.service | 17 | ||||
-rw-r--r-- | packaging/systemd/deluged.service | 19 |
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 |