shardingsphere
shardingsphere copied to clipboard
Enhance startup script
Fixes #15663.
Changes proposed in this pull request:
- Refactor the script
- Priority use java from JAVA_HOME
- Check a tcp IP:Port is can be use
- Judge startup succeeded or failed
How about echoing some warning instead of exiting if addresses & port checking failed? I'm not sure whether the checking could cover all cases.
How about echoing some warning instead of exiting if addresses & port checking failed? I'm not sure whether the checking could cover all cases.
this a good idea.
thanks @TeslaCN ,This is a good case。 I fix it to support mulit-ip for start.sh
There are many cases should be considered in address and port checking. Maybe we could do the checking in next PR. This PR just focus on enhancements about Docker and JAVA_HOME.