Created
August 17, 2025 11:13
-
-
Save Bhavya031/958301e7315284f035e67d5e8472c84b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=qBittorrent Command Line Client | |
After=network.target | |
[Service] | |
Type=simple | |
User=qbittorrent-nox | |
Group=qbittorrent-nox | |
UMask=007 | |
WorkingDirectory=/var/lib/qbittorrent-nox | |
Environment=HOME=/var/lib/qbittorrent-nox | |
# Performance optimizations | |
Nice=-10 | |
IOSchedulingClass=1 | |
IOSchedulingPriority=4 | |
CPUSchedulingPolicy=2 | |
CPUSchedulingPriority=50 | |
# Resource limits - optimized for high-performance VM | |
LimitNOFILE=1048576 | |
LimitNPROC=32768 | |
LimitCORE=infinity | |
LimitMEMLOCK=infinity | |
# Memory settings | |
MemoryHigh=6G | |
MemoryMax=7G | |
MemorySwapMax=0 | |
# CPU settings - allow use of all cores | |
CPUQuota=800% | |
CPUWeight=1000 | |
# Network optimizations | |
IPAccounting=yes | |
# Security settings (relaxed for performance) | |
NoNewPrivileges=true | |
PrivateTmp=false | |
ProtectSystem=false | |
ProtectHome=false | |
ReadWritePaths=/var/lib/qbittorrent-nox | |
ExecStart=/usr/local/bin/qbittorrent-nox --webui-port=5879 | |
Restart=on-failure | |
RestartSec=5 | |
StartLimitBurst=3 | |
StartLimitInterval=60 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment