status torrent

This commit is contained in:
Christian Rotzoll 2019-04-13 10:50:57 +01:00
parent 031f388a9e
commit 6884beee92
3 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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)