diff --git a/packaging/systemd/deluge-web.service b/packaging/systemd/deluge-web.service index b74c0ada8..7904db31a 100644 --- a/packaging/systemd/deluge-web.service +++ b/packaging/systemd/deluge-web.service @@ -1,7 +1,7 @@ [Unit] Description=Deluge Bittorrent Client Web Interface Documentation=man:deluge-web -After=network-online.target deluged.service +After=deluged.service Wants=deluged.service [Service] diff --git a/packaging/systemd/user/deluge-web.service b/packaging/systemd/user/deluge-web.service new file mode 100644 index 000000000..2c3557eb6 --- /dev/null +++ b/packaging/systemd/user/deluge-web.service @@ -0,0 +1,16 @@ +[Unit] +Description=Deluge Bittorrent Client Web Interface +Documentation=man:deluge-web +After=deluged.service +Wants=deluged.service + +[Service] +UMask=027 + +ExecStart=/usr/bin/deluge-web -d + +Restart=on-failure +Slice=background.slice + +[Install] +WantedBy=default.target diff --git a/packaging/systemd/user/deluged.service b/packaging/systemd/user/deluged.service new file mode 100644 index 000000000..b026dee7b --- /dev/null +++ b/packaging/systemd/user/deluged.service @@ -0,0 +1,13 @@ +[Unit] +Description=Deluge Bittorrent Client Daemon +Documentation=man:deluged + +[Service] +UMask=007 +ExecStart=/usr/bin/deluged -d +Restart=on-failure +TimeoutStopSec=300 +Slice=background.slice + +[Install] +WantedBy=default.target