-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Auto Run on Reboot
First, download the binary for your operating system. Next, register a new service to run cloud-torrent
on boot
Move the binary to /usr/local/bin/cloud-torrent
-
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
-
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!