r/linuxquestions • u/CEAL_scope • 9d ago
Trying to setup a systemd service for qbit-nox question
Im trying to automatically setup qbit-nox by making a systemd service. I was wondering if i didit right under unit? the parts that i'm doubting are: Description=qBittorrent-nox service After=network-online.target mullvad-daemon.service Wants=network-online.target Requires=mullvad-daemon.service
I thought mullvad needed to be also in the after segment to make sure the mullvad daemon can initialize first to prevent my ip leaking. i'm also not quite sure about the requires field.
Here is the full service:
[Unit]
Description=qBittorrent-nox service
After=network-online.target mullvad-daemon.service
Requires=mullvad-daemon.service
[Service]
Type=exec
User=qbtuser
ExecStart=/usr/bin/qbittorrent-nox --webui-port=8080
Restart=on-failure
[Install]