Wait for shutdown & start.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5671 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-10-17 09:31:01 +00:00
parent 77e5220e67
commit b6584fe42d
+2 -2
View File
@@ -8,12 +8,12 @@ PG_CTL="pg_ctl -D $DB -o -p7777"
case $1 in
create)
$PG_CTL status | grep "pid" && $PG_CTL stop
$PG_CTL status | grep "pid" && $PG_CTL stop && sleep 1
rm -rf $DB
initdb $DB || EXIT_VALUE=1
;;
destroy)
$PG_CTL status | grep "pid" && $PG_CTL stop
$PG_CTL status | grep "pid" && $PG_CTL stop && sleep 1
rm -rf $DB
;;
start)