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

Commit8231a7a

Browse files
committed
Fix minor bugs
1 parent5b912b0 commit8231a7a

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

‎src/bin/pg_ctl/pg_ctl.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.1 1999/12/0607:23:41 ishii Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.2 1999/12/0608:35:34 ishii Exp $
1212
#
1313
#-------------------------------------------------------------------------
1414
CMDNAME=`basename$0`
@@ -131,6 +131,8 @@ if [ $op = "stop" -o $op = "restart" ];then
131131
echo"done."
132132
fi
133133

134+
echo"postmaster successfully shut down."
135+
134136
else
135137
echo"$CMDNAME: Can't find$PIDFILE."
136138
echo"Is postmaster running?"
@@ -148,12 +150,19 @@ if [ $op = "start" -o $op = "restart" ];then
148150
pid=`cat$PIDFILE`
149151
fi
150152

153+
# no -o given
151154
if [-z"$POSTOPTS" ];then
152-
if [-f$DEFPOSTOPTS ];then
153-
eval`cat$DEFPOSTOPTS`&
155+
if [$op="start" ];then
156+
# if we are in start mode, then look postmaster.opts.default
157+
if [-f$DEFPOSTOPTS ];then
158+
eval`cat$DEFPOSTOPTS`&
159+
else
160+
echo"$CMDNAME: Can't find$DEFPOSTOPTS"
161+
exit 1
162+
fi
154163
else
155-
echo"$CMDNAME: Can't find$DEFPOSTOPTS"
156-
exit 1
164+
# if we are in restart mode, then look postmaster.opts
165+
eval`cat$POSTOPTSFILE`&
157166
fi
158167
else
159168
$po_path$POSTOPTS&
@@ -186,6 +195,8 @@ if [ $op = "start" -o $op = "restart" ];then
186195
done
187196
echo"done."
188197
fi
198+
199+
echo"postmaster successfully started up."
189200
fi
190201

191202
exit 0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp