How can I run bitcoind automatically five minutes after restart?
So far I have crontab set up to reboot my computer every morning at 4AM (it runs into issues when it stays on for more than a couple days). I also have tried to use crontab to restart bitcoind on @reboot, but haven't had any success with that.
I am currently using Ubuntu 18.10, and bitcoind v0.18.0.0. Here is my current crontab:
0 4 * * * /sbin/shutdown -r +5
@reboot /usr/bin/bitcoind -daemon -conf=/home/<username>/.bitcoin/bitcoin.conf
@reboot /path/to/bitcoind -daemon ...
? You left out the command name.@reboot sleep 5m ; /path/to/bitcoind -daemon ...
0 4 * * * bitcoin-cli stop; /sbin/shutdown -r +5
I added thesleep 5m
. Appears to do the job.at
command and trigger it at startup. unix.stackexchange.com/questions/146615/…