Created
December 13, 2021 17:07
-
-
Save xenjke/c6c52adec82a10e8cd0fe6d59f8bb6b0 to your computer and use it in GitHub Desktop.
TorrServ setup on Ubuntu (Lightsail)
This file contains 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
wget https://github.com/YouROK/TorrServer/releases/download/MatriX.109/TorrServer-linux-amd64 | |
sudo mkdir --parent /opt/torrserver; sudo mv TorrServer-linux-amd64 $_ | |
sudo apt -qq update | |
sudo apt install systemd-container -qq | |
sudo cat >> /etc/systemd/system/torrserver.service <<'EOF' | |
[Unit] | |
Description=torrserver | |
After=network.target | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
Type=simple | |
NonBlocking=true | |
WorkingDirectory=/opt/torrserver | |
ExecStart=/opt/torrserver/TorrServer-linux-amd64 --p 8090 -a | |
Restart=on-failure | |
RestartSec=5s | |
EOF | |
sudo cat >> /opt/torrserver/accs.db <<'EOF' | |
{ | |
"changethis":"andthat" | |
} | |
EOF | |
sudo systemctl daemon-reload && sudo systemctl start torrserver && sudo systemctl enable torrserver | |
sudo systemctl status torrserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment