Improved systemd unit file and make it more similar to the bundled one.

Francisco Pombal 2019-11-10 00:04:46 +00:00
parent 802bbb1ad1
commit 1192c48fe5

@ -63,11 +63,14 @@ First, create a file:
``` ```
[Unit] [Unit]
Description=qBittorrent Daemon Service Description=qBittorrent Daemon Service
After=network.target Documentation=man:qbittorrent-nox(1)
Wants=network-online.target
After=network-online.target nss-lookup.target
[Service] [Service]
# if you have systemd >= 240, you probably want to use Type=exec instead
Type=simple
User=qbtuser User=qbtuser
Group=qbtuser
ExecStart=/usr/bin/qbittorrent-nox ExecStart=/usr/bin/qbittorrent-nox
TimeoutStopSec=infinity TimeoutStopSec=infinity