In this guide, we show you two methods for automatically restarting you Chia processess upon system reboot.
This is a way to run the Chia node/farmer/harvester on a headless Windows machine. Anytime the machine reboots, this will start it all automatically.
What you need is a batchfile in some location (eg
C:\<Yourlocation>\BootChia.bat). You will also need to create a task through Task Scheduler.
Open Notepad and copy the following lines:
timeout /t 60 >NUL
START “Daemon” /b /normal %LOCALAPPDATA%\chia-blockchain\app-1.2.5\resources\app.asar.unpacked\daemon\chia.exe start farmer
and save in any location (eg
C:\<Yourlocation>) as “
The script has 3 components:
Should you ever upgrade Chia, say to version 1.2.7 then the “
app-1.2.5” part needs to be changed to “
You can cause plotting to start automatically as well, visit our discord server if you want to learn how.
Voilà, next time your PC restarts, Chia will automatically start up.
nssm.cc (Non-Sucking Service Manager) allows you to start Chia as a service. Note that this requires to download (unmaintained) third-party software, so use at your own risk.
nssm.exeand hit enter
nssm install Chia-serviceand hit enter
Go to the Windows Start button look for the “Services” app. Here you will find “Chia-service”. You can rightclick and press “Start” to test if it works (make sure you have no other instances of Chia running).
timeout /t 60 >NUL
powershell -windowstyle hidden C:\Scripts\Farmer.ps1 » C:\Scripts\startup.log
$path = Get-item -Path $ENV:LOCALAPPDATA\chia-blockchain\app*\resources\app.asar.unpacked\daemon\chia.exe
&$path start farmer
If you want to disable Windows automatic update, you can follow this guide: https://www.windowscentral.com/how-stop-updates-installing-automatically-windows-10.
Note that stalling updates for too long is not recommended (there's a reason for the updates).