Shutdown of Dojo and bitcoind
Created by: LaurentMT
When Dojo is stopped with "dojo.sh stop", we have a delay of 15s between the shutdown of bitcoind and the shutdown of all docker containers.
The sweet spot for the duration of the delay seems to depend on multiple factors (hardware, operations processed by bitcoind before the shutdown, etc).
If the delay is too short, bitcoind will rewind the chain on next startup (takes a lot of time). On the other hand, a long static delay doesn't seem like a good tradeoff in term of UX.
It might be a good idea to replace the static delay by a loop testing if bitcoind is still up.