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

Commit1f0cf56

Browse files
committed
Update startup scripts for Linux and FreeBSD.
Kevin Grittner
1 parent28cdf5f commit1f0cf56

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

‎contrib/start-scripts/freebsd‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Created through merger of the Linux start script by Ryan Kirkpatrick
77
# and the script in the FreeBSD ports collection.
88

9-
# $PostgreSQL: pgsql/contrib/start-scripts/freebsd,v 1.5 2009/08/27 16:59:38 tgl Exp $
9+
# $PostgreSQL: pgsql/contrib/start-scripts/freebsd,v 1.6 2010/02/23 22:15:35 momjian Exp $
1010

1111
## EDIT FROM HERE
1212

@@ -36,7 +36,14 @@ DAEMON="$prefix/bin/postmaster"
3636
PGCTL="$prefix/bin/pg_ctl"
3737

3838
# Only start if we can find the postmaster.
39-
test -x"$DAEMON"||exit 0
39+
test -x$DAEMON||
40+
{
41+
echo"$DAEMON not found"
42+
if ["$1"="stop" ]
43+
thenexit 0
44+
elseexit 5
45+
fi
46+
}
4047

4148
case$1in
4249
start)

‎contrib/start-scripts/linux‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Original author: Ryan Kirkpatrick <pgsql@rkirkpat.net>
2626

27-
# $PostgreSQL: pgsql/contrib/start-scripts/linux,v 1.10 2010/01/11 18:39:32 tgl Exp $
27+
# $PostgreSQL: pgsql/contrib/start-scripts/linux,v 1.11 2010/02/23 22:15:35 momjian Exp $
2828

2929
## EDIT FROM HERE
3030

@@ -64,7 +64,15 @@ PGCTL="$prefix/bin/pg_ctl"
6464
set -e
6565

6666
# Only start if we can find the postmaster.
67-
test -x$DAEMON||exit 0
67+
test -x$DAEMON||
68+
{
69+
echo"$DAEMON not found"
70+
if ["$1"="stop" ]
71+
thenexit 0
72+
elseexit 5
73+
fi
74+
}
75+
6876

6977
# Parse command line parameters.
7078
case$1in

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp