After connect with ssh session rutorrent works, but when logout shows error “Bad response from server: (500 [error list]) Link to XMLRPC failed May be, rTorrent is down.?”. rTorrent stays on, downloading and uploading.
rTorrent starts as a service systemd:
osmc@osmc:~$ cat .config/systemd/user/rt.service
[Unit]
Description=rTorrent
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorrent
ExecStop=/usr/bin/killall -w -s 2 /usr/bin/rtorrent
[Install]
WantedBy=multi-user.target
osmc@osmc:~$ systemctl --user enable rt
osmc@osmc:~$ systemctl --user start rt
When manually start rTorrent no problem:
osmc@osmc:~$ screen -d -m -S rtorrent /usr/bin/rtorrent