This is based on @bertux written systemd script and it can any k instance of the witnet. Docker is not required, and only thing you need to do is run script.
Before running the script you have to make the script executable by:
chmod +x witnet.sh
Usage:
./witnet.sh create -s 1 -e 5
This will create witnet1
to witnet5
in the home directory and also start all of them.
Options:
-s is the start number
-e is the end number
Since this is systemd:
./witnet.sh status -s 1 -e 5
Similarily for any n instance number.
./witnet.sh start -s 1 -e 5
./witnet.sh stop -s 1 -e 5
Do the following:
cd ~/witnet1
./witnet node getBalance
Similar for the rest of the commands. And change the number in ~/witnet1
for query any other instance.