View Single Post
  #960  
Old 25th October 2018, 01:28 PM
MikkiJayne MikkiJayne is offline
Senior Member
 
Join Date: Jan 2012
Posts: 5,017
Default

The cats were cold so I made this to restart Cast-XMR every hour which will catch and reset an unresponsive GPU and avoid dead time.

Code:
$application1 = "C:\mining\cast_xmr-vega\switch-radeon-gpu.exe"
$params1 = "--hbcc=off autorestart"
$application2 = "C:\mining\cast_xmr-vega\cast_xmr-vega"
$params2 = " -S cryptonightv8.eu.nicehash.com:3367 -u username -G 0,1,2 -O 1 --nicehash -I 7 -R --remoteport 7777 --fastjobswitch --algo=10 --forcecompute --ratewatchdog"
$sleepTime = 3600
$i = 1

while ($i = 1){
    Write-Host "Starting mining"
    Start-Process $application1 $params1 -PassThru
    $process = Start-Process $application2 $params2 -PassThru

    Write-Host "Waiting " $sleepTime "seconds"
    Start-Sleep -Seconds $sleepTime

    if(!$process.HasExited){
        Write-Host "Killing mining"
        $process.Kill()
    }
    else{
        echo "Mining had already ended"
    }

    Start-Sleep -Seconds 2
}
Powershell sits there counting while Cast is running. After an hour it kills and restarts the process. Repeat ad infinitum.

The rig is still for sale, but it might as well keep the cats warm until then

Last edited by MikkiJayne; 25th October 2018 at 01:35 PM.
Reply With Quote