Commit c0f9597b authored by Tatsuo Ishii's avatar Tatsuo Ishii

Imporve messages.

parent ee6a9168
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # 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 $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -215,7 +215,7 @@ if [ $op = "stop" -o $op = "restart" ];then ...@@ -215,7 +215,7 @@ if [ $op = "stop" -o $op = "restart" ];then
kill $sig $PID kill $sig $PID
# wait for postmaster shutting down # wait for postmaster to shut down
if [ "$wait" = 1 -o $op = "restart" ];then if [ "$wait" = 1 -o $op = "restart" ];then
cnt=0 cnt=0
$ECHO_N "Waiting for postmaster to shut down.."$ECHO_C $ECHO_N "Waiting for postmaster to shut down.."$ECHO_C
...@@ -226,7 +226,8 @@ if [ $op = "stop" -o $op = "restart" ];then ...@@ -226,7 +226,8 @@ if [ $op = "stop" -o $op = "restart" ];then
$ECHO_N "."$ECHO_C $ECHO_N "."$ECHO_C
cnt=`expr $cnt + 1` cnt=`expr $cnt + 1`
if [ $cnt -gt 60 ];then if [ $cnt -gt 60 ];then
echo "$CMDNAME: postmaster does not shut down" echo "failed."
echo "postmaster does not shut down."
exit 1 exit 1
fi fi
else else
...@@ -234,10 +235,10 @@ if [ $op = "stop" -o $op = "restart" ];then ...@@ -234,10 +235,10 @@ if [ $op = "stop" -o $op = "restart" ];then
fi fi
sleep 1 sleep 1
done done
echo "done" echo "done."
fi fi
echo "postmaster successfully shut down" echo "postmaster successfully shut down."
else else
echo "$CMDNAME: cannot find $PIDFILE" echo "$CMDNAME: cannot find $PIDFILE"
...@@ -281,7 +282,7 @@ if [ $op = "start" -o $op = "restart" ];then ...@@ -281,7 +282,7 @@ if [ $op = "start" -o $op = "restart" ];then
fi fi
fi fi
# wait for postmaster starting up # wait for postmaster to start up
if [ "$wait" = 1 ];then if [ "$wait" = 1 ];then
cnt=0 cnt=0
$ECHO_N "Waiting for postmaster to start up.."$ECHO_C $ECHO_N "Waiting for postmaster to start up.."$ECHO_C
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment