mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
try nice on rtorrent
This commit is contained in:
@@ -86,7 +86,7 @@ if [ ${torrentComplete1} -eq 0 ]; then
|
|||||||
|
|
||||||
# start torrent download in screen session
|
# start torrent download in screen session
|
||||||
echo "starting torrent: blockchain"
|
echo "starting torrent: blockchain"
|
||||||
command1="sudo rtorrent -n -d ${targetDir} -s ${sessionDir}/blockchain/ /home/admin/assets/${baseTorrentFile}.torrent"
|
command1="sudo nice -n 10 rtorrent -n -d ${targetDir} -s ${sessionDir}/blockchain/ /home/admin/assets/${baseTorrentFile}.torrent"
|
||||||
screenCommand="screen -S blockchain -L screen.log -dm ${command1}"
|
screenCommand="screen -S blockchain -L screen.log -dm ${command1}"
|
||||||
echo "${screenCommand}"
|
echo "${screenCommand}"
|
||||||
bash -c "${screenCommand}"
|
bash -c "${screenCommand}"
|
||||||
@@ -110,7 +110,7 @@ if [ ${torrentComplete2} -eq 0 ]; then
|
|||||||
|
|
||||||
# start torrent download in screen session
|
# start torrent download in screen session
|
||||||
echo "starting torrent: update"
|
echo "starting torrent: update"
|
||||||
command2="sudo rtorrent -n -d ${targetDir} -s ${sessionDir}/update/ /home/admin/assets/${updateTorrentFile}.torrent"
|
command2="sudo nice -n 10 rtorrent -n -d ${targetDir} -s ${sessionDir}/update/ /home/admin/assets/${updateTorrentFile}.torrent"
|
||||||
screenCommand="screen -S update -L screen.log -dm ${command2}"
|
screenCommand="screen -S update -L screen.log -dm ${command2}"
|
||||||
echo "${screenCommand}"
|
echo "${screenCommand}"
|
||||||
bash -c "${screenCommand}"
|
bash -c "${screenCommand}"
|
||||||
|
Reference in New Issue
Block a user