apt install wget
sudo apt update; sudo apt full-upgrade; sudo mkdir /opt/torrserver; sudo chown -R $USER:$USER /opt/torrserver; sudo wget https://github.com/YouROK/TorrServer/releases/latest/download/TorrServer-linux-amd64 -O /opt/torrserver/torrserver; sudo chmod o+x /opt/torrserver/torrserver; echo -e '[Unit]\nDescription=torrserver\nWants=network-online.target\nAfter=network-online.target\n\n[Service]\nType=simple\nNonBlocking=true\nWorkingDirectory=/opt/torrserver\nExecStart=/opt/torrserver/torrserver --p 8090\nRestart=on-failure\nRestartSec=58\n\n[Install]\nWantedBy=multi-user.target' | sudo tee /etc/systemd/system/torrserver.service > /dev/null; export GODEBUG=madvdontneed=1; sudo systemctl daemon-reload; sudo systemctl start torrserver; sudo systemctl enable torrserver
systemctl status torrserver