123456789101112131415 |
- #!/usr/bin/env bash
- if [ ! -z "${APPNET}" ]; then
- echo "Initial nslookup ${HOSTNAME}.${APPNET}"
- nslookup ${HOSTNAME}.${APPNET}
- while [ $? -ne 0 ]; do
- echo "Waiting for ${HOSTNAME}.${APPNET} to become available"
- sleep 1
- nslookup ${HOSTNAME}.${APPNET}
- done
- fi
- #sed -i 's/ >> "$CATALINA_OUT" 2>\&1 "\&"/ "\&"/' /opt/tomcat8/bin/catalina.sh
- #sed -i 's/touch "$CATALINA_OUT"/#touch "$CATALINA_OUT"/' /opt/tomcat8/bin/catalina.sh
- #sed -i 's/.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler/.handlers = java.util.logging.ConsoleHandler/' /opt/tomcat8/conf/logging.properties
- exec "$@"
|