Skip to content

Commit f9b29b8

Browse files
committed
Make non-wait pg_ctl start/stop message more accurate.
1 parent a620a76 commit f9b29b8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/bin/pg_ctl/pg_ctl.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.sh,v 1.37 2003/11/29 19:52:04 pgsql Exp $
11+
# $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.sh,v 1.38 2004/01/10 02:55:14 momjian Exp $
1212
#
1313
#-------------------------------------------------------------------------
1414

@@ -299,7 +299,11 @@ if [ "$op" = "stop" -o "$op" = "restart" -o "$op" = "reload" ];then
299299
if [ "$op" = "reload" ];then
300300
$silence_echo echo "postmaster successfully signaled"
301301
else
302-
$silence_echo echo "postmaster successfully shut down"
302+
if [ "$wait" = yes ];then
303+
$silence_echo echo "postmaster successfully shut down"
304+
else
305+
$silence_echo echo "postmaster shutting down"
306+
fi
303307
fi
304308

305309
else # ! -f $PIDFILE
@@ -399,8 +403,10 @@ if [ "$op" = "start" -o "$op" = "restart" ];then
399403
fi
400404
done
401405
$silence_echo echo "done"
406+
$silence_echo echo "postmaster successfully started"
407+
else
408+
$silence_echo echo "postmaster starting"
402409
fi
403-
$silence_echo echo "postmaster successfully started"
404410
fi # start or restart
405411

406412
exit 0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy