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

Commit6809c06

Browse files
committed
Be consistent about not using ECHO_N/ECHO_C (seems unnecessary on Linux).
1 parentd0b5444 commit6809c06

File tree

1 file changed

+2
-11
lines changed
  • contrib/start-scripts

1 file changed

+2
-11
lines changed

‎contrib/start-scripts/linux

Lines changed: 2 additions & 11 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.7 2004/10/01 18:30:21 tgl Exp $
27+
# $PostgreSQL: pgsql/contrib/start-scripts/linux,v 1.8 2006/07/13 14:44:33 petere Exp $
2828

2929
## EDIT FROM HERE
3030

@@ -42,15 +42,6 @@ PGLOG="$PGDATA/serverlog"
4242

4343
## STOP EDITING HERE
4444

45-
# Check for echo -n vs echo \c
46-
ifecho'\c'| grep -s c>/dev/null2>&1;then
47-
ECHO_N="echo -n"
48-
ECHO_C=""
49-
else
50-
ECHO_N="echo"
51-
ECHO_C='\c'
52-
fi
53-
5445
# The path that is to be used for the script
5546
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
5647

@@ -70,7 +61,7 @@ test -x $DAEMON || exit 0
7061
# Parse command line parameters.
7162
case$1in
7263
start)
73-
$ECHO_N"Starting PostgreSQL:"$ECHO_C
64+
echo -n"Starting PostgreSQL:"
7465
su -$PGUSER -c"$DAEMON -D '$PGDATA' &">>$PGLOG2>&1
7566
echo"ok"
7667
;;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp