123456789101112131415161718192021222324252627282930313233 |
- #!/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
- echo "Initial nslookup ${ADMIN_HOST}.${APPNET}"
- nslookup ${ADMIN_HOST}.${APPNET}
- while [ $? -ne 0 ]; do
- echo "Waiting for ${ADMIN_HOST}.${APPNET} to become available"
- sleep 1
- nslookup ${ADMIN_HOST}.${APPNET}
- done
- fi
- # See Redmine 103910
- admin_ip=$(nslookup ${ADMIN_HOST}.${APPNET}|grep Address|tail -n +2|cut -d " " -f2)
- echo ${admin_ip} > /tmp/admin_ip
- echo "#Dummy" >> /etc/rc.d/init.d/functions
- source /etc/init.d/web-registry-portal status
- if [ ! -z "$*" ]
- then
- exec "$@"
- else
- exec ${WEB_REGISTRY_BIN} ${WEB_REGISTRY_CUSTOM_OPTS} ${WEB_REGISTRY_OPTS}
- fi
|