#! /bin/sh

#container's options
export START_OPTIONS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Xms1000M -Xmx1000M"

#clean up the services' state if needed
[ -f "$GLOBUS_LOCATION/config/GHNProfile.xml" ] ||  rm -rf ~/.gcore

cd $GLOBUS_LOCATION
echo "gCore is running and logging into logs/container.log..."
$GLOBUS_LOCATION/bin/gcore-start-container-daemon "$@" &
 

