Skip to content
Jaime Pillora edited this page Jan 9, 2023 · 9 revisions

Installation

First, download the binary for your operating system. Next, register a new service to run cloud-torrent on boot

Ubuntu

Move the binary to /usr/local/bin/cloud-torrent

systemd

  1. Create a new service file:

    /etc/systemd/system/cloud-torrent.service

    [Unit]
    Description=cloud-torrent
    
    [Service]
    WorkingDirectory=/root/
    ExecStart=/usr/local/bin/cloud-torrent --port 8080 --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:password"
    Restart=always
    RestartSec=3
    
    [Install]
    WantedBy=multi-user.target
    
  • Enable the service

    systemctl enable cloud-torrent

  • Start the service

    systemctl start cloud-torrent

  • Confirm the service is running

    systemctl status cloud-torrent

CentOS

  • Run on Reboot

    chmod +x /etc/rc.d/rc.local

    echo /usr/local/bin/cloud-torrent --port 8080 --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:password" >>chmod +x /etc/rc.d/rc.local

  • shutdown cloud-torrent(clout-torrent need running)

    eval $(ps -ef | grep cloud-torrent | grep -v grep | awk '{print "kill "$2}')

  • check cloud-torrent status

    ps -ef | grep 'cloud-torrent' | grep -v 'grep' | awk '{print $2}'

    if have result ,service is running

  • Debian like CentOS set

Documentation not written - please contribute!

Clone this wiki locally