#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.16 2000/11/29 20:59:53 tgl Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.17 2000/12/30 06:10:43 ishii Exp $
#
#-------------------------------------------------------------------------
kill $sig $PID
- # wait for postmaster shutting down
+ # wait for postmaster to shut down
if [ "$wait" = 1 -o $op = "restart" ];then
cnt=0
$ECHO_N "Waiting for postmaster to shut down.."$ECHO_C
$ECHO_N "."$ECHO_C
cnt=`expr $cnt + 1`
if [ $cnt -gt 60 ];then
- echo "$CMDNAME: postmaster does not shut down"
+ echo "failed."
+ echo "postmaster does not shut down."
exit 1
fi
else
fi
sleep 1
done
- echo "done"
+ echo "done."
fi
- echo "postmaster successfully shut down"
+ echo "postmaster successfully shut down."
else
echo "$CMDNAME: cannot find $PIDFILE"
fi
fi
- # wait for postmaster starting up
+ # wait for postmaster to start up
if [ "$wait" = 1 ];then
cnt=0
$ECHO_N "Waiting for postmaster to start up.."$ECHO_C