Skip to content

Instantly share code, notes, and snippets.

@kngklla
kngklla / claymonitor.sh
Last active January 26, 2018 19:06
simple script to monitor claymore-xmr for zero hash and restart on ethos
#/bin/bash!
# assumes running on ethosdistro
# sample cron run every 5 mins script in /home/ethos/
# */5 * * * * /home/ethos/claymonitor.sh
if [ `tail /var/run/miner.output | grep -c " 0 H"` -gt 0 ]
then
/opt/ethos/bin/minestop;echo `date` miner restarted >> /home/ethos/claymonitor.txt
else
echo `date` miner ok >> claymonitor.txt
fi

Keybase proof

I hereby claim:

  • I am kngklla on github.
  • I am kngklla (https://keybase.io/kngklla) on keybase.
  • I have a public key ASBri81AxpPeB5BGJdsiXBAdg-Zt1B4_LCZy0QXA_zBy3Qo

To claim this, I am signing this object: