Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: dazbog835 on July 31, 2017, 12:39:14 PM



Title: [xmr-stak] Any simple script for restarting computer if mining stops?
Post by: dazbog835 on July 31, 2017, 12:39:14 PM
I'm running xmr-stak on a computer and I was thinking if there is a way I could detect when xmr stak stops running or the connection isn't there anymore.

This happens once a day maybe, and it's usually that xmr-stak is open, but it froze on a certain timestamp. It doesn't respond to commands like hashrate or connection.

Currently I have it set up so that it starts every time the computer boots (win10x64), and keeps attempting to run it every 5 minutes if there isn't one running atm. So a simple hack could be to just somehow detect if the program is still running, and if it's not, it would restart in 5 minutes automatically...

Any advice?