WHAT="phoenix"
CMD=`sudo ps -ef | grep -v grep | grep ${WHAT} | wc | awk '{print $1}'`
if [ ${CMD} -le 0 ]; then
echo "stopped running. restart here."
exit 1
else
echo "it's running. no need to do anything."
fi
exit 0
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
[Desktop Entry]
Encoding=UTF-8
Name=coin
Exec=lxterminal --command "sh /home/user/start.sh"
Terminal=true
[Desktop Entry]
Encoding=UTF-8
Name=coin
Exec=lxterminal --command "sh /home/user/start.sh"
Terminal=true
ld=`aticonfig --odgc --adapter=2 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
pc=`ps waxuf | grep miner3.sh -c`
ld=`aticonfig --odgc --adapter=1 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then
kill `ps -ef | grep miner3 | grep -v grep | awk '{print $2}'`
lxterminal --title miner3 --command sh /home/user/miner3.sh &
date +"%D %r miner3 restarted" >> /home/user/cron_job.log
fi
default menu.c32
prompt 0
menu title LinuxCoin
timeout 2
label linuxcoin
menu label LinuxCoin Persistent (flash only)
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config quiet splash persistent rw vga=791 noprompt
[Desktop Entry]
Encoding=UTF-8
Name=coin
Exec=lxterminal --command "sh /home/user/start.sh"
Terminal=true
#!/bin/bash
sleep 20
xhost +
echo $DISPLAY > /home/user/.display
AMDOverdriveCtrl -i 0 -b gpu0.ovdr
AMDOverdriveCtrl -i 3 -b gpu3.ovdr
lxterminal --title miner1 --command "sh /home/user/miner1.sh"
lxterminal --title miner2 --command "sh /home/user/miner2.sh"
#!/bin/bash
cd /opt/miners/phoenix
./phoenix.py -u http://yanz_1:[email protected]:8332/ -q 7 -k phatk BFI_INT VECTORS FASTLOOP=false AGGRESSION=11 DEVICE=0
#!/bin/bash
export DISPLAY=`cat /home/user/.display`
pc=`ps waxuf | grep miner1.sh -c`
ld=`aticonfig --odgc --adapter=0 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then
kill `ps -ef | grep miner1 | grep -v grep | awk '{print $2}'`
lxterminal --title miner1 --command sh /home/user/miner1.sh &
date +"%D %r miner1 restarted" >> /home/user/cron_job.log
fi
pc=`ps waxuf | grep miner2.sh -c`
ld=`aticonfig --odgc --adapter=1 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then
kill `ps -ef | grep miner2 | grep -v grep | awk '{print $2}'`
lxterminal --title miner2 --command sh /home/user/miner2.sh &
date +"%D %r miner2 restarted" >> /home/user/cron_job.log
fi
0-59 * * * * sh /home/user/restart.sh