guides:farming:chia_autostart_windows
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:farming:chia_autostart_windows [2021/09/27 13:20] – [Method 3: Using Windows Startup with PowerShell script] spacefarmer01 | guides:farming:chia_autostart_windows [2024/01/05 08:07] (current) – Use Chia 2.x paths aj | ||
---|---|---|---|
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 13: | Line 13: | ||
Open Notepad and copy the following lines: | Open Notepad and copy the following lines: | ||
- | '' | + | <code - C: |
+ | timeout /t 60 >NUL | ||
+ | START " | ||
+ | Exit | ||
+ | </ | ||
- | '' | + | 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 56: | Line 59: | ||
- type '' | - type '' | ||
- Install chia.exe as a service: type '' | - Install chia.exe as a service: type '' | ||
- | - A window will pop up. In the " | + | - A window will pop up. In the " |
- | - Under " | + | - Under " |
- Under " | - Under " | ||
- proceed to the " | - proceed to the " | ||
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 the computer, the chia farmer will start automatically. with each Chia version update, you do not need to update the script. | ||
==== Disable Windows Auto-update==== | ==== Disable Windows Auto-update==== |
guides/farming/chia_autostart_windows.1632748821.txt.gz · Last modified: 2021/09/27 13:20 by spacefarmer01 · Currently locked by: 172.71.254.43,18.221.70.17