Skip to content

Instantly share code, notes, and snippets.

@polarker
Created November 20, 2021 16:43
Show Gist options
  • Save polarker/d7f7a9903106c6184cf76fad4e695294 to your computer and use it in GitHub Desktop.
Save polarker/d7f7a9903106c6184cf76fad4e695294 to your computer and use it in GitHub Desktop.
Auto restart miner in case of crash
until /bin/gpu-miner 1>>miner.log 2>>error.log; do
echo "Miner crashed with exit code $?. Respawning.." >> error.log
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment