wget https://github.com/jpillora/cloud-torrent/releases/download/0.8.24/cloud-torrent_linux_amd64.gz
gunzip cloud-torrent_linux_amd64.gz
mv cloud-torrent_linux_amd64 cloud-torrent

cat > cloud-torrent.service << EOF

[Unit]
Description=cloud-torrent

[Service]
WorkingDirectory=/root/
ExecStart=/var/www/html/cloud-torrent --port 443 --config-path /var/www/html/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:pass" --cert-path /var/www/html/ssl.crt --key-path /var/www/html/ssl.key
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

EOF

开启

systemctl start cloud-torrent
systemctl enable cloud-torrent

关闭

systemctl stop cloud-torrent
systemctl disable cloud-torrent