From b1e0bf02ec5c04f9e7759ec97bc3fe3a78abe112 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Thu, 11 Apr 2019 21:30:41 +0100 Subject: [PATCH] rtorrent set to run on idle --- home.admin/50torrentHDD.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/50torrentHDD.sh b/home.admin/50torrentHDD.sh index 534c431..f0052e4 100755 --- a/home.admin/50torrentHDD.sh +++ b/home.admin/50torrentHDD.sh @@ -86,7 +86,7 @@ if [ ${torrentComplete1} -eq 0 ]; then # start torrent download in screen session echo "starting torrent: blockchain" - command1="sudo nice -n 10 rtorrent -n -p 49200-49250 -d ${targetDir} -s ${sessionDir}/blockchain/ /home/admin/assets/${baseTorrentFile}.torrent" + command1="sudo nice -n 10 chrt -i 0 rtorrent -n -p 49200-49250 -d ${targetDir} -s ${sessionDir}/blockchain/ /home/admin/assets/${baseTorrentFile}.torrent" screenCommand="screen -S blockchain -L screen.log -dm ${command1}" echo "${screenCommand}" bash -c "${screenCommand}" @@ -110,7 +110,7 @@ if [ ${torrentComplete2} -eq 0 ]; then # start torrent download in screen session echo "starting torrent: update" - command2="sudo nice -n 10 rtorrent -n -p 49200-49250 -d ${targetDir} -s ${sessionDir}/update/ /home/admin/assets/${updateTorrentFile}.torrent" + command2="sudo nice -n 10 chrt -i 0 rtorrent -n -p 49200-49250 -d ${targetDir} -s ${sessionDir}/update/ /home/admin/assets/${updateTorrentFile}.torrent" screenCommand="screen -S update -L screen.log -dm ${command2}" echo "${screenCommand}" bash -c "${screenCommand}"