I am trying to automate a creation of a multichain and also create/subscribe to a stream.
I wrote a bash script to run inside a docker container and the main elements of it are;
multichaind -txindex -printtoconsole -shrinkdebugfilesize $CHAINNAME
multichain-cli $CHAINNAME create stream test false
multichain-cli $CHAINNAME create stream user_data false
multichain-cli $CHAINNAME subscribe test
multichain-cli $CHAINNAME subscribe user_data
I pretty much copied it from here - https://github.com/Kunstmaan/docker-multichain/blob/master/master/runchain.sh
My problem is, once the multichain starts it doesn't go on to create the streams. I tried adding -daemon at the end of the start command but then the docker container just stops once it gets to the bottom of the script.
Any ideas how I can start up the multichain but also run the create stream commands, all being executed from a bash file