diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-01-10 02:55:14 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-01-10 02:55:14 +0000 |
commit | f9b29b80235fff288317fa2f3b2ef4d0b1df5150 (patch) | |
tree | 7ce9d324c2a8d5fe3eeb367c33896d5301f13602 /src | |
parent | a620a760ed258a2004645ee87c9b98da71cf5266 (diff) | |
download | postgresql-f9b29b80235fff288317fa2f3b2ef4d0b1df5150.tar.gz postgresql-f9b29b80235fff288317fa2f3b2ef4d0b1df5150.zip |
Make non-wait pg_ctl start/stop message more accurate.
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/pg_ctl/pg_ctl.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.sh b/src/bin/pg_ctl/pg_ctl.sh index d228fc0d565..e7a8f8f297c 100755 --- a/src/bin/pg_ctl/pg_ctl.sh +++ b/src/bin/pg_ctl/pg_ctl.sh @@ -8,7 +8,7 @@ # # # IDENTIFICATION -# $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.sh,v 1.37 2003/11/29 19:52:04 pgsql Exp $ +# $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.sh,v 1.38 2004/01/10 02:55:14 momjian Exp $ # #------------------------------------------------------------------------- @@ -299,7 +299,11 @@ if [ "$op" = "stop" -o "$op" = "restart" -o "$op" = "reload" ];then if [ "$op" = "reload" ];then $silence_echo echo "postmaster successfully signaled" else - $silence_echo echo "postmaster successfully shut down" + if [ "$wait" = yes ];then + $silence_echo echo "postmaster successfully shut down" + else + $silence_echo echo "postmaster shutting down" + fi fi else # ! -f $PIDFILE @@ -399,8 +403,10 @@ if [ "$op" = "start" -o "$op" = "restart" ];then fi done $silence_echo echo "done" + $silence_echo echo "postmaster successfully started" + else + $silence_echo echo "postmaster starting" fi - $silence_echo echo "postmaster successfully started" fi # start or restart exit 0 |