Is there a automated way to manage re-start if optimizer.exe dies?
Right now, it displays a dialog box and only when I click 'ok', it proceeds and gives the command back to cmd. Hence I can't even loop it within the batch file...
It seems to die every 10 mins or so and without any manual intervention, I don't see any obvious way to effectively keep the GPUs busy 100% of the times.
Thanks!
Here is the solution i use for this issue. I also recommend you use the mod instruction on page 4 of this tread for the miner software to minimize crashes.
Copy the first section below into a text file and save it as run.vbs in your optiminer folder. Then copy the second section into a bat file you can use to execute the script. This will setup up a wrapper that will automatically restart optiminer every time it crashes.
The windows notification for a crashed program will also need to be disabled, otherwise a popup box will prevent the program from restarting.
These instructions work for windows 10.
https://www.raymond.cc/blog/disable-program-has-stopped-working-error-dialog-in-windows-server-2008/run.vbs
*******************
Dim objShell
Dim strErrorCode
Dim comspec
Dim i
Dim j
Set objShell = CreateObject("WScript.Shell")
comspec = objShell.ExpandEnvironmentStrings("%comspec%")
i=0
do
i=i+1
Set oExec = objShell.Exec(comspec & " /c optiminer -s zero.suprnova.cc:6568 -u xxxx.xxx -p xxxx -m 8080")
Do While oExec.Status = 0
WScript.Sleep 100
j=0
do while oExec.StdOut.AtEndOfStream=false
WScript.echo oExec.Stdout.ReadLine()
j=j+1
if j>25 then
WScript.echo "Restart Count is " & i
j=0
end if
loop
Loop
WScript.Sleep 500
loop
*****************
Start.bat
*****************
SET GPU_FORCE_64BIT_PTR=1
cscript run.vbs
pause
*****************