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
guides:farming:chia_autostart_linux [2021/12/10 20:53] spacefarmer01guides:farming:chia_autostart_linux [2023/08/13 15:43] (current) – old revision restored vleesbanaan
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 14: Line 14:
 Type=forking Type=forking
 User={USERNAME} User={USERNAME}
-ExecStart=/home/{USERNAME}/chia-blockchain/venv/bin/chia start %i +WorkingDirectory=/home/{USERNAME}/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.1639169608.txt.gz · Last modified: 2021/12/10 20:53 by spacefarmer01

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki