From 615b76f78c8ab92ad57bed42fc4266950c9f0251 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 4 Sep 2021 13:20:35 +0800 Subject: [PATCH] Prolong wait time for shutdown The default was 90s[1], prolong to 30 mins. From the discussion in [2], ~2k torrents took 5 mins to completely shutdown. Here we wait at most 30 mins which scales to about 12k torrents which should cover most use case (also note that 4.3.x series is mentioned to have even shorter shutdown time). [1] https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html#DefaultTimeoutStartSec= [2] https://github.com/qbittorrent/qBittorrent/issues/15381#issuecomment-912080617 PR #15414. --- dist/unix/systemd/qbittorrent-nox@.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/unix/systemd/qbittorrent-nox@.service.in b/dist/unix/systemd/qbittorrent-nox@.service.in index 283a88b50..fe49c31da 100644 --- a/dist/unix/systemd/qbittorrent-nox@.service.in +++ b/dist/unix/systemd/qbittorrent-nox@.service.in @@ -9,6 +9,7 @@ Type=simple PrivateTmp=false User=%i ExecStart=@EXPAND_BINDIR@/qbittorrent-nox +TimeoutStopSec=1800 [Install] WantedBy=multi-user.target