Skip to content

Instantly share code, notes, and snippets.

@adamdenes
adamdenes / start_chia.sh
Created June 23, 2021 15:42
Auto start chia farmer, delete temp files and start plotting
#!/bin/bash
#$HOME/chia-blockchain/venv/bin/chia start farmer && echo $(date "+%Y-%m-%d %H:%M:%S %Z"): [ chia start farmer ] starting farmer
#start chia farmer
cd $HOME/chia-blockchain/ && . ./activate && chia start farmer && echo $(date "+%Y-%m-%d %H:%M:%S %Z"): [ chia start farmer ] starting farmer
#not needed, leaving here anyway
swapoff -a && sleep 5s && swapon -a && echo $(date "+%Y-%m-%d %H:%M:%S %Z"): Swap cleared!
#delete .tmp files from ssd's