Browse Source

background torrent status

master
Christian Rotzoll 6 years ago
parent
commit
4e5d4f3199
  1. 2
      home.admin/50torrentHDD.sh

2
home.admin/50torrentHDD.sh

@ -60,6 +60,7 @@ if [ "$1" == "backup-torrent-hosting-cleanup" ]; then
exit
fi
if [ "$1" == "backup-torrent-hosting-status" ]; then
echo "#--> screen -S blockchain -X hardcopy .temp.out && cat ./.temp.out"
sessionPID=$(screen -ls | grep "blockchain" | cut -d "." -f1 | xargs)
if [ ${#sessionPID} -gt 0 ]; then
echo "baseSeeding=1"
@ -68,6 +69,7 @@ if [ "$1" == "backup-torrent-hosting-status" ]; then
fi
torrentComplete=$(cat ${sessionDir}/blockchain/*.torrent.rtorrent 2>/dev/null | grep ':completei1' -c)
echo "baseComplete=${torrentComplete}"
echo "#--> screen -S update -X hardcopy .temp.out && cat ./.temp.out"
sessionPID=$(screen -ls | grep "update" | cut -d "." -f1 | xargs)
if [ ${#sessionPID} -gt 0 ]; then
echo "updateSeeding=1"

Loading…
Cancel
Save