boot
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:1k
- #! /bin/sh
- #
- # boot : create DB directories, initialize DB segments,
- # run DB manager in background and call bin/base utility
- # to create set of DB system tables.
- #
- # This file is a part of GNU SQL Server
- #
- # Copyright (c) 1996, 1997 Free Software Foundation, Inc.
- # This file is written by Michael Kimelman.
- #
- # Contacts: gss@ispras.ru
- #
- if [ "x$1" = "x" ] ; then
- X=`ls gsqls`
- if [ "x$X" = "xgsqls" ] ; then
- SER=.
- else
- SER=$GSQL/sqlser
- fi
- else
- SER=$1
- fi
- cd $SER
- pwd
- bin/finadm
- sleep 1
- # bin/dq
- rm -r -f jarchive db gmon.out gdbinit
- find . -name core -exec rm {} ;
- mkdir jarchive
- mkdir db
- ls -al
- bin/prepup
- ./gsqls &
- sleep 10 ## it is better to configure this timeout
- bin/base </dev/null
- sleep 2
- echo =====================================
- exit
- sleep 10
- ./bin/finadm
- sleep 1
- echo =====================================