#!/bin/sh
# seastar startup
# by zhsoft88
# since 2008-03-29 
dir=`dirname $0`
case $dir in
  /* ) ;;
  * ) dir=`pwd`/$dir ;;
esac
if [ ! -d $dir ]
then
  echo "dir doesn't exists: $dir"
  exit 1
fi
cd $dir
if [ ! -x ./seastar.bin ]
then
  echo "seastar.bin does not exists or cannot execute"
  exit 2
fi
export SEASTAR_HOME=`pwd`
export LD_LIBRARY_PATH=$SEASTAR_HOME:$LD_LIBRARY_PATH
exec ./seastar.bin ${1+"$@"}
