Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite308786

Browse files
committed
Update pg_ctl so that it does not redirect outputs from postmaster
to a temp file.
1 parent418368b commite308786

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

‎src/bin/pg_ctl/pg_ctl.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.11 2000/03/27 02:12:03 ishii Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.12 2000/04/25 01:07:23 ishii Exp $
1212
#
1313
#-------------------------------------------------------------------------
1414
CMDNAME=`basename$0`
15-
tmp=/tmp/tmp$$
16-
trap"rm -f$tmp; exit" 0 1 2 13 15
1715

1816
# Check for echo -n vs echo \c
1917

@@ -221,17 +219,17 @@ if [ $op = "start" -o $op = "restart" ];then
221219
if [$op="start" ];then
222220
# if we are in start mode, then look for postmaster.opts.default
223221
if [-f$DEFPOSTOPTS ];then
224-
eval"$po_path`cat$DEFPOSTOPTS`">$tmp2>&1&
222+
eval"$po_path`cat$DEFPOSTOPTS`"&
225223
else
226224
$ECHO"$CMDNAME: Can't find$DEFPOSTOPTS"
227225
exit 1
228226
fi
229227
else
230228
# if we are in restart mode, then look postmaster.opts
231-
eval`cat$POSTOPTSFILE`>$tmp2>&1&
229+
eval`cat$POSTOPTSFILE`&
232230
fi
233231
else
234-
eval"$po_path$POSTOPTS">$tmp2>&1&
232+
eval"$po_path$POSTOPTS"&
235233
fi
236234

237235
if [-f$PIDFILE ];then
@@ -255,11 +253,6 @@ if [ $op = "start" -o $op = "restart" ];then
255253
cnt=`expr$cnt + 1`
256254
if [$cnt-gt 60 ];then
257255
$ECHO"$CMDNAME: postmaster does not start up"
258-
if [-r$tmp ];then
259-
$ECHO"$CMDNAME: messages from postmaster:"
260-
$ECHO
261-
cat$tmp
262-
fi
263256
exit 1
264257
fi
265258
sleep 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp