File tree 1 file changed +4
-11
lines changed
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 8
8
#
9
9
#
10
10
# 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 $
12
12
#
13
13
# -------------------------------------------------------------------------
14
14
CMDNAME=` basename $0 `
15
- tmp=/tmp/tmp$$
16
- trap " rm -f $tmp ; exit" 0 1 2 13 15
17
15
18
16
# Check for echo -n vs echo \c
19
17
@@ -221,17 +219,17 @@ if [ $op = "start" -o $op = "restart" ];then
221
219
if [ $op = " start" ]; then
222
220
# if we are in start mode, then look for postmaster.opts.default
223
221
if [ -f $DEFPOSTOPTS ]; then
224
- eval " $po_path ` cat $DEFPOSTOPTS ` " > $tmp 2>&1 &
222
+ eval " $po_path ` cat $DEFPOSTOPTS ` " &
225
223
else
226
224
$ECHO " $CMDNAME : Can't find $DEFPOSTOPTS "
227
225
exit 1
228
226
fi
229
227
else
230
228
# if we are in restart mode, then look postmaster.opts
231
- eval ` cat $POSTOPTSFILE ` > $tmp 2>&1 &
229
+ eval ` cat $POSTOPTSFILE ` &
232
230
fi
233
231
else
234
- eval " $po_path $POSTOPTS " > $tmp 2>&1 &
232
+ eval " $po_path $POSTOPTS " &
235
233
fi
236
234
237
235
if [ -f $PIDFILE ]; then
@@ -255,11 +253,6 @@ if [ $op = "start" -o $op = "restart" ];then
255
253
cnt=` expr $cnt + 1`
256
254
if [ $cnt -gt 60 ]; then
257
255
$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
263
256
exit 1
264
257
fi
265
258
sleep 1
You can’t perform that action at this time.
0 commit comments