Browse Source

status torrent

master
Christian Rotzoll 6 years ago
parent
commit
6884beee92
  1. 2
      home.admin/00infoBlitz.sh
  2. 2
      home.admin/00settingsMenuServices.sh
  3. 8
      home.admin/50torrentHDD.sh

2
home.admin/00infoBlitz.sh

@ -273,7 +273,7 @@ fi
# STATUS SINALING: Backup Torrent Seeding
torrentBaseStatus="•"
torrentUpdateStatus="•"
source <(sudo /home/admin/50torrentHDD.sh backup-torrent-hosting-status)
source <(sudo -u admin /home/admin/50torrentHDD.sh status)
if [ "${baseComplete}" == "1" ]; then
torrentBaseStatus="↑"
elif [ "${baseSeeding}" == "1" ]; then

2
home.admin/00settingsMenuServices.sh

@ -237,7 +237,7 @@ RaspiBlitz can be slow.
else
echo "Stopping Torrents and Cleaning Up ..."
/home/admin/50torrentHDD.sh backup-torrent-hosting-cleanup
/home/admin/50torrentHDD.sh cleanup
echo "BACKUP TORRENT SEEDING IS NOW OFF"
needsReboot=1
fi

8
home.admin/50torrentHDD.sh

@ -6,10 +6,10 @@
# to just kick of the torrent downloads in the background during
# regular RaspiBlitz running. So you support torrent hosting and have a blockchain backup ready just in case.
# backup-torrent-hosting-cleanup
# cleanup
# to stop background torrents and clean up
# backup-torrent-hosting-status
# status
# to get info backround torrent hosting
## get basic info
@ -40,7 +40,7 @@ targetDir="/mnt/hdd/torrent"
sessionDir="/home/admin/.rtorrent.session"
# BACKUP TORRENT SEEDING
if [ "$1" == "backup-torrent-hosting-cleanup" ]; then
if [ "$1" == "cleanup" ]; then
echo "Stopping Torrents ..."
sessionPID=$(screen -ls | grep "blockchain" | cut -d "." -f1 | xargs)
if [ ${#sessionPID} -gt 0 ]; then
@ -58,7 +58,7 @@ if [ "$1" == "backup-torrent-hosting-cleanup" ]; then
echo "DONE"
exit
fi
if [ "$1" == "backup-torrent-hosting-status" ]; then
if [ "$1" == "status" ]; then
echo "# BASE TORRENT - for details call:"
echo "# screen -S blockchain -X hardcopy .temp.out && cat ./.temp.out && rm ./.temp.out"
sessionPID=$(screen -ls | grep "blockchain" | cut -d "." -f1 | xargs)

Loading…
Cancel
Save