User Tools

Site Tools


guides:farming:chia_autostart_windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next 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.227guides: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 upon system reboot.  +In this guide, we show you two methods for automatically restarting you Chia processes upon system reboot.  
-  * Method 1: Using a batchfile and the built-in Task Scheduler +  * Method 1: Using a batchfile and the built-in Task Scheduler (recommended) 
-  * Method 2: Using nssm.cc +  * Method 2: Using nssm.cc (this uses 3rd party software, use at own risk)
-  * Method 3: Using Windows Startup with PowerShell script+
  
 ====Method 1: Batchfile==== ====Method 1: Batchfile====
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:farming:chialocation|More information]]) 
  
 You can cause plotting to start automatically as well, visit our [[https://discord.gg/EgnjUCnCCt|discord server]] if you want to learn how.  You can cause plotting to start automatically as well, visit our [[https://discord.gg/EgnjUCnCCt|discord server]] if you want to learn how. 
Line 52: Line 51:
  
 ''    Get-Content ~\.chia\mainnet\log\debug.log -wait -tail 50 | Select-String "eligible"   ''    ''    Get-Content ~\.chia\mainnet\log\debug.log -wait -tail 50 | Select-String "eligible"   ''   
- 
- 
  
 ==== Method 2 - using nssm.cc==== ==== Method 2 - using nssm.cc====
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, visit https://nssm.cc/usage and https://www.youtube.com/watch?v=96OtET8HmA0 For more information, visit https://nssm.cc/usage and https://www.youtube.com/watch?v=96OtET8HmA0
- 
-====Method 3: Using Windows Startup with PowerShell script==== 
- 
-===Step 1=== 
-  * Create a new file called Start_Farmer.cmd inside C:\Scripts\ folder 
- 
-''    timeout /t 60 >NUL '' 
- 
-''    powershell -windowstyle hidden C:\Scripts\Farmer.ps1 >> C:\Scripts\startup.log   ''    
-         
-===Step 2=== 
-  * Create a new file called Start_Farmer.ps1 inside C:\Scripts\ folder 
- 
-''    $path = Get-item -Path $ENV:LOCALAPPDATA\chia-blockchain\app*\resources\app.asar.unpacked\daemon\chia.exe  '' 
- 
-''    &$path start farmer  '' 
- 
-===Step 3=== 
-  * Browse to the %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup path 
- 
-  * Create a shortcut to the C:\Scripts\Start_Farmer.cmd file 
- 
-  * 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 · Currently locked by: 172.70.100.56,18.223.29.143

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki