Created
June 3, 2018 22:53
-
-
Save thachp/3d210501a43b8ac5f0182b49a5398c92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONFIG_FILE="/root/config.txt" | |
source $CONFIG_FILE | |
export DISPLAY=:0 | |
export GPU_MAX_ALLOC_PRECENT=100 | |
export GPU_USE_SYNC_OBJECTS=0 | |
export GPU_SINGLE_ALLOC_PERCENT=100 | |
killall xterm -9 | |
sleep 0.1 | |
killall screen -9 | |
sleep 0.1 | |
screen -wipe | |
sleep 1 | |
screen -dm -S miner bash -c "/root/utils/update_register.sh" & | |
screen -dm -S srr_pre bash -c "/root/utils/SRR/keepalive.sh" & | |
if [ $osSeries == "R" ]; then | |
# xterm -title "CPU/Memory info" -geometry 100x8+5+620 -e "while true; do screen -x htop; sleep 1; done" & | |
# xterm -title "GPU status" -geometry 120x40+815+40 -e "while true; do screen -x gpu_stats; sleep 1; done" & | |
xterm -title "Miner Console" -geometry 130x30+5+200 -e "while true; do screen -x miner; sleep 1; done" & | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment