diff options
| author | Peter Eisentraut | 2017-01-13 17:00:00 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2017-01-14 14:15:08 +0000 |
| commit | 05cd12ed5bc74c853a161c5a138a0cb6f9b0cb8a (patch) | |
| tree | a9af278974518bbf8b7c23c98c3a8ee001844c5f /contrib/start-scripts/freebsd | |
| parent | e574f15d6295b12c03ef8810c00976b65933711a (diff) | |
pg_ctl: Change default to wait for all actions
The different actions in pg_ctl had different defaults for -w and -W,
mostly for historical reasons. Most users will want the -w behavior, so
make that the default.
Remove the -w option in most example and test code, so avoid confusion
and reduce verbosity. pg_upgrade is not touched, so it can continue to
work with older installations.
Reviewed-by: Beena Emerson <memissemerson@gmail.com>
Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
Diffstat (limited to 'contrib/start-scripts/freebsd')
| -rw-r--r-- | contrib/start-scripts/freebsd | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/start-scripts/freebsd b/contrib/start-scripts/freebsd index 87d9b9b357..c6ac8cd47a 100644 --- a/contrib/start-scripts/freebsd +++ b/contrib/start-scripts/freebsd @@ -28,8 +28,7 @@ PGLOG="$PGDATA/serverlog" PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # What to use to start up the postmaster. (If you want the script to wait -# until the server has started, you could use "pg_ctl start -w" here. -# But without -w, pg_ctl adds no value.) +# until the server has started, you could use "pg_ctl start" here.) DAEMON="$prefix/bin/postmaster" # What to use to shut down the postmaster @@ -51,7 +50,7 @@ case $1 in su -l $PGUSER -c "$PGCTL stop -D '$PGDATA' -s" ;; restart) - su -l $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -w" + su -l $PGUSER -c "$PGCTL stop -D '$PGDATA' -s" su -l $PGUSER -c "$DAEMON -D '$PGDATA' &" >>$PGLOG 2>&1 ;; status) |
