Created
November 2, 2020 08:06
-
-
Save markessien/93386354af2141c8bd64e01fde7d39f0 to your computer and use it in GitHub Desktop.
Chia Systemd file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
After=network.target | |
[Service] | |
Type=forking | |
User=ubuntu | |
ExecStart=/home/ubuntu/start_chia.sh | |
[Install] | |
WantedBy=default.target | |
-- Take note that you need to use the forking type, otherwise it does not work | |
Content of the start_chia.sh file | |
#!/bin/bash | |
cd /home/ubuntu/chia-blockchain | |
. ./activate | |
chia start farmer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment