Skip to content

Instantly share code, notes, and snippets.

@markessien
Created November 2, 2020 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markessien/93386354af2141c8bd64e01fde7d39f0 to your computer and use it in GitHub Desktop.
Save markessien/93386354af2141c8bd64e01fde7d39f0 to your computer and use it in GitHub Desktop.
Chia Systemd file
[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