I have configured my SOLR to start automatically on startup by following these instructions. This works fine for single instance of SOLR. However, I want to start multiple instances on startup and I've made the following changes in my rc.local file:
/home/ubuntu/solr1_start.sh && /home/ubuntu/solr2_start.sh && /home/ubuntu/solr3_start.sh
where each start.sh script has the command to run the corresponding SOLR instance on different ports.
The problem is that when I reboot my server, it only starts the first instance and doesn't start solr2 and solr3 instances. What can I do to fix this?