
exec 2>&1

USER="root"	#geneweb"

BD=$(/sbin/e-smith/db configuration getprop geneweb DBDir || echo '/opt/geneweb/bases')
TcpPort=$(/sbin/e-smith/db configuration getprop gwsetup TCPPort || echo '2316')
GWLANG=$(/sbin/e-smith/db configuration getprop sysconfig Language | sed -e 's/_.*$//')

HD="/opt/geneweb/gw/gw"
BIN="$HD/gwsetup"

cd $BD
exec  $BIN -gd $HD -bindir $HD -p $TcpPort -lang $GWLANG
