User Tools

Site Tools


guides:farming:chia_autostart_linux

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_linux [2021/12/10 20:53] spacefarmer01guides:farming:chia_autostart_linux [2023/08/12 22:50] – [Step 1 - Create the Chia service] 172.68.4.132
Line 7: Line 7:
 Create the Chia service: ''sudo nano /etc/systemd/system/[email protected]'' and paste the following service: Create the Chia service: ''sudo nano /etc/systemd/system/[email protected]'' and paste the following service:
  
-//Note: Replace {USERNAME} (3x) with the name of the user having Chia installed.+//Note: Replace {USERNAME} (2x) with the name of the user having Chia installed.
 //<code> //<code>
 [Unit] [Unit]
Line 13: Line 13:
 [Service] [Service]
 Type=forking Type=forking
-User={USERNAME} +User=ranger 
-ExecStart=/home/{USERNAME}/chia-blockchain/venv/bin/chia start %i +WorkingDirectory=/home/ranger/chia-blockchain 
-ExecStop=/home/{USERNAME}/chia-blockchain/venv/bin/chia stop -d all+ExecStart=/usr/bin/bash -c ". ./activate && chia start %i && deactivate" 
 +ExecStop=/usr/bin/bash -c ". ./activate && chia stop -d all && deactivate"
 Restart=always Restart=always
 [Install] [Install]
guides/farming/chia_autostart_linux.txt · Last modified: 2023/08/13 15:43 by vleesbanaan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki