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
fdf87fdf
Commit
fdf87fdf
authored
Feb 10, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new FreeBSD start script that makes use of new pg_ctl functionality.
parent
5c8055e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
contrib/start-scripts/freebsd
contrib/start-scripts/freebsd
+58
-0
No files found.
contrib/start-scripts/freebsd
0 → 100644
View file @
fdf87fdf
#! /bin/sh
# PostgreSQL boot time startup script for FreeBSD. Copy this file to
# /usr/local/etc/rc.d/postgresql.
# Created through merger of the Linux start script by Ryan Kirkpatrick
# and the script in the FreeBSD ports collection.
# $Header: /cvsroot/pgsql/contrib/start-scripts/freebsd,v 1.1 2001/02/10 00:13:23 petere Exp $
## EDIT FROM HERE
# Installation prefix
prefix
=
/usr/local/pgsql
# Data directory
PGDATA
=
"/usr/local/pgsql/data"
# Who to run pg_ctl as, should be "postgres".
PGUSER
=
postgres
# Where to keep a log file
PGLOG
=
"
$PGDATA
/serverlog"
## STOP EDITING HERE
export
PGDATA
# The path that is to be used for the script
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# What to use to start up the postmaster
DAEMON
=
"
$prefix
/bin/pg_ctl"
test
-x
"
$DAEMON
"
||
exit
0
case
$1
in
start
)
su
-l
$PGUSER
-c
"
$DAEMON
start -s -l
$PGLOG
"
echo
-n
' postgresql'
;;
stop
)
su
-l
$PGUSER
-c
"
$DAEMON
stop -s -m fast"
;;
restart
)
su
-l
$PGUSER
-c
"
$DAEMON
restart -s -m fast"
;;
status
)
su
-l
$PGUSER
-c
"
$DAEMON
status"
;;
*
)
# Print help
echo
"Usage:
`
basename
$0
`
{start|stop|restart|status}"
1>&2
exit
1
;;
esac
exit
0
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