guides:farming:chia_autostart_windows
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
guides:farming:chia_autostart_windows [2021/09/27 13:29] – [Method 3: Using Windows Startup with PowerShell script] spacefarmer01 | guides:farming:chia_autostart_windows [2023/05/01 15:53] – wolfgt | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Chia Autostart (Windows) ====== | ====== Chia Autostart (Windows) ====== | ||
- | In this guide, we show you two methods for automatically restarting you Chia processess | + | In this guide, we show you two methods for automatically restarting you Chia processes |
- | * Method 1: Using a batchfile and the built-in Task Scheduler | + | * Method 1: Using a batchfile and the built-in Task Scheduler |
- | * Method 2: Using nssm.cc | + | * Method 2: Using nssm.cc |
- | * Method 3: Using Windows Startup with PowerShell script | + | |
====Method 1: Batchfile==== | ====Method 1: Batchfile==== | ||
- | This is a way to run the Chia node/ | + | This is a way to run the Chia node/ |
What you need is a batchfile in some location (eg '' | What you need is a batchfile in some location (eg '' | ||
===Step 1 - Creating the Batchfile=== | ===Step 1 - Creating the Batchfile=== | ||
Line 15: | Line 15: | ||
'' | '' | ||
- | '' | + | '' |
| | ||
'' | '' | ||
- | + | and save in any location (eg '' | |
- | and save in any location (eg '' | + | |
The script has 3 components: | The script has 3 components: | ||
Line 28: | Line 27: | ||
__**Note: | __**Note: | ||
- | Should you ever upgrade Chia, say to version | + | The chia.exe path was changed in a 1.6.x release to a more convenient structure where the version reference was removed from the full path. On older client versions you will need to fetch and change the version specific path to chia.exe in the .bat file. ([[guides: |
You can cause plotting to start automatically as well, visit our [[https:// | You can cause plotting to start automatically as well, visit our [[https:// | ||
Line 48: | Line 48: | ||
Voilà, next time your PC restarts, Chia will automatically start up. | Voilà, next time your PC restarts, Chia will automatically start up. | ||
+ | To ensure everything is working as intended you can open a Powershell window and run the following command to verify the farmer is processing incoming challenges correctly | ||
+ | |||
+ | '' | ||
==== Method 2 - using nssm.cc==== | ==== Method 2 - using nssm.cc==== | ||
Line 67: | Line 70: | ||
Now when your system reboots, chia.exe will automatically start. | Now when your system reboots, chia.exe will automatically start. | ||
For more information, | For more information, | ||
- | |||
- | ====Method 3: Using Windows Startup with PowerShell script==== | ||
- | |||
- | ===Step 1=== | ||
- | * Create a new file called Start_Farmer.cmd inside C:\Scripts\ folder | ||
- | |||
- | '' | ||
- | |||
- | '' | ||
- | | ||
- | ===Step 2=== | ||
- | * Create a new file called Start_Farmer.ps1 inside C:\Scripts\ folder | ||
- | |||
- | '' | ||
- | |||
- | '' | ||
- | |||
- | ===Step 3=== | ||
- | * Browse to the %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup path | ||
- | |||
- | * Create a shortcut to the C: | ||
- | |||
- | * Now each time you restart and logon to the computer, the chia farmer will start automatically. After each Chia App version update, you **do not need** to update the script. | ||
==== Disable Windows Auto-update==== | ==== Disable Windows Auto-update==== |
guides/farming/chia_autostart_windows.txt · Last modified: 2024/01/05 08:07 by aj