ApplicationSetup.sh revision 2078
1040N/A# Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. 1040N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1040N/A# This code is free software; you can redistribute it and/or modify it 1040N/A# under the terms of the GNU General Public License version 2 only, as 1040N/A# published by the Free Software Foundation. 1040N/A# This code is distributed in the hope that it will be useful, but WITHOUT 1040N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1040N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1040N/A# version 2 for more details (a copy is included in the LICENSE file that 1040N/A# You should have received a copy of the GNU General Public License version 1040N/A# 2 along with this work; if not, write to the Free Software Foundation, 2362N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 1040N/A# startApplication - starts target application 1040N/A# stopApplication $1 - stops application via TCP shutdown port $1 1040N/A # MKS creates an intermediate shell to launch ${JAVA} so 1040N/A # ${pid} is not the actual pid. We have put in a small sleep 1040N/A # to give the intermediate shell process time to launch the 1040N/A if [ "${isCygwin}" = "true" ] ; then 2736N/A echo "Waiting for Application to initialize..." 2736N/A # In case of errors wait time for output to be flushed echo "Application is process $pid, shutdown port is $port"