#!/bin/bash
if [ -s $GEMSTONE/seaside/etc/gemstone.secret ]; then
      . $GEMSTONE/seaside/etc/gemstone.secret
else
      echo 'Missing password file $GEMSTONE/seaside/etc/gemstone.secret'
      exit 1
 fi

echo "Starting stone: $GEMSTONE_NAME"

$GEMSTONE/seaside/bin/stopGemstone $GEMSTONE_CURATOR_PASS

$GEMSTONE/bin/startstone $GEMSTONE_NAME -z $GEMSTONE_SYS_CONF -l $GEMSTONE_LOGDIR/$GEMSTONE_NAME.log

