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 [2022/12/17 09:03] – Updated method 1, text changes, full path update and added command to tail debug log. 217.122.86.227 | 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==== | ||
Line 14: | 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 '' | ||
Line 28: | Line 27: | ||
__**Note: | __**Note: | ||
- | 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. | + | 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 52: | Line 51: | ||
'' | '' | ||
- | |||
- | |||
==== Method 2 - using nssm.cc==== | ==== Method 2 - using nssm.cc==== | ||
Line 62: | 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 73: | 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.1671267816.txt.gz · Last modified: 2022/12/17 09:03 by 217.122.86.227