diff --git a/openbis/dist/server/startup.sh b/openbis/dist/server/startup.sh index f8fe1a30fa0f635ba19bb9d6f7287685bbd99e41..dbe42357ac7a19c5529f5f244c83b2bad26a0bbb 100755 --- a/openbis/dist/server/startup.sh +++ b/openbis/dist/server/startup.sh @@ -7,6 +7,12 @@ source `dirname "$0"`/setup-env checkNotRoot +source `dirname "$0"`/status.sh > /dev/null +if [ $? -eq 0 ]; then + echo openBIS AS already running, shut it down before start a new one. + exit 1 +fi + $JVM -DSTOP.PORT=$JETTY_STOP_PORT \ -DSTOP.KEY=$JETTY_STOP_KEY \ $JAVA_OPTS $JAVA_MEM_OPTS \