Commit 443db06d authored by Bruce Momjian's avatar Bruce Momjian

Fix duplication of -D during pg_ctl restart, from Peter E's patch.

parent 62f5bade
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.20 2001/04/21 11:23:58 petere Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.21 2001/07/11 04:57:34 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -316,7 +316,8 @@ if [ $op = "start" -o $op = "restart" ];then ...@@ -316,7 +316,8 @@ if [ $op = "start" -o $op = "restart" ];then
eval set X "$POSTOPTS"; shift eval set X "$POSTOPTS"; shift
fi fi
set X -D "$PGDATA" ${1+"$@"}; shift # pass environment into new postmaster
export PGDATA
if [ -n "$logfile" ]; then if [ -n "$logfile" ]; then
"$po_path" "$@" </dev/null >>$logfile 2>&1 & "$po_path" "$@" </dev/null >>$logfile 2>&1 &
......
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