Hi I am farming in ubuntu 20.04, I am trying to create a batch file .sh to run the forks in cli mode, the think is that it start the daemons, but after a few seconds every fork closes. I am using the following commands:
sit start farmer
taco start farmer-no-wallet
You need to launch that using the script with “PAUSE” at the end (so that the terminal wouldn’t close) or using crontab
Or execute the script in a screen session.
The “PAUSE” command is not working.
And one more thing, when I am running the above commands by hand it’s working fine and I close the terminal at the end. So when I run the terminal the commands run ok, and after I close the terminal the daemons(node, farmer, wallet etc) work ok.
So when you run it by hand it works totally fine?
Yes. It works fine by hand.
And when I run the .sh file from cli with ./start.sh its works fine. It does not work when I run the start.sh file from file manager with double click and run in terminal!!
Did you try creating a script for launching that file? So that a computer would think that you launch that manually
I dont know how to do this!
there are plenty ways to autostart that, you can find them on chia’s github page, but here is one of them using crontab:
@reboot cd ~/chia-blockchain && . ./activate && chia start farmer
command to edit crontab: sudo crontab -e