# seastarserv
# by zhsoft88
# since 2008-05-31 
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
binfile=./seastarserv.bin
if [ ! -x $binfile ]
then
  echo "$binfile does not exists or cannot execute"
  exit 2
fi
export SEASTAR_HOME=`pwd`
export LD_LIBRARY_PATH=$SEASTAR_HOME:$LD_LIBRARY_PATH
exec $binfile ${1+"$@"}
