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/17 12:25] – vleesbanaan | 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 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 12: | 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 27: | 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 47: | 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 53: | Line 57: | ||
- Download at https:// | - Download at https:// | ||
- Change Directory to the folder in 1, in our case the Downloads folder: '' | - Change Directory to the folder in 1, in our case the Downloads folder: '' | ||
- | - use '' | + | - type '' |
- | - Install chia.exe as a service: '' | + | - Install chia.exe as a service: |
- | - 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 62: | Line 66: | ||
- Click " | - Click " | ||
- | Go to the Windows Start button look for the " | + | Go to the Windows Start button look for the " |
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, | ||
+ | |||
==== Disable Windows Auto-update==== | ==== Disable Windows Auto-update==== | ||
If you want to disable Windows automatic update, you can follow this guide: https:// | If you want to disable Windows automatic update, you can follow this guide: https:// | ||
Note that stalling updates for too long is not recommended (there' | Note that stalling updates for too long is not recommended (there' |
guides/farming/chia_autostart_windows.1631881503.txt.gz · Last modified: 2021/09/17 12:25 by vleesbanaan