Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1f0cf56b
Commit
1f0cf56b
authored
Feb 23, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update startup scripts for Linux and FreeBSD.
Kevin Grittner
parent
28cdf5f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
contrib/start-scripts/freebsd
contrib/start-scripts/freebsd
+9
-2
contrib/start-scripts/linux
contrib/start-scripts/linux
+10
-2
No files found.
contrib/start-scripts/freebsd
View file @
1f0cf56b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# Created through merger of the Linux start script by Ryan Kirkpatrick
# Created through merger of the Linux start script by Ryan Kirkpatrick
# and the script in the FreeBSD ports collection.
# and the script in the FreeBSD ports collection.
# $PostgreSQL: pgsql/contrib/start-scripts/freebsd,v 1.
5 2009/08/27 16:59:38 tgl
Exp $
# $PostgreSQL: pgsql/contrib/start-scripts/freebsd,v 1.
6 2010/02/23 22:15:35 momjian
Exp $
## EDIT FROM HERE
## EDIT FROM HERE
...
@@ -36,7 +36,14 @@ DAEMON="$prefix/bin/postmaster"
...
@@ -36,7 +36,14 @@ DAEMON="$prefix/bin/postmaster"
PGCTL
=
"
$prefix
/bin/pg_ctl"
PGCTL
=
"
$prefix
/bin/pg_ctl"
# Only start if we can find the postmaster.
# Only start if we can find the postmaster.
test
-x
"
$DAEMON
"
||
exit
0
test
-x
$DAEMON
||
{
echo
"
$DAEMON
not found"
if
[
"
$1
"
=
"stop"
]
then
exit
0
else
exit
5
fi
}
case
$1
in
case
$1
in
start
)
start
)
...
...
contrib/start-scripts/linux
View file @
1f0cf56b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
# Original author: Ryan Kirkpatrick <pgsql@rkirkpat.net>
# Original author: Ryan Kirkpatrick <pgsql@rkirkpat.net>
# $PostgreSQL: pgsql/contrib/start-scripts/linux,v 1.1
0 2010/01/11 18:39:32 tgl
Exp $
# $PostgreSQL: pgsql/contrib/start-scripts/linux,v 1.1
1 2010/02/23 22:15:35 momjian
Exp $
## EDIT FROM HERE
## EDIT FROM HERE
...
@@ -64,7 +64,15 @@ PGCTL="$prefix/bin/pg_ctl"
...
@@ -64,7 +64,15 @@ PGCTL="$prefix/bin/pg_ctl"
set
-e
set
-e
# Only start if we can find the postmaster.
# Only start if we can find the postmaster.
test
-x
$DAEMON
||
exit
0
test
-x
$DAEMON
||
{
echo
"
$DAEMON
not found"
if
[
"
$1
"
=
"stop"
]
then
exit
0
else
exit
5
fi
}
# Parse command line parameters.
# Parse command line parameters.
case
$1
in
case
$1
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment