Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
fdf87fdf
Commit
fdf87fdf
authored
24 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Add new FreeBSD start script that makes use of new pg_ctl functionality.
parent
5c8055e4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/start-scripts/freebsd
+58
-0
58 additions, 0 deletions
contrib/start-scripts/freebsd
with
58 additions
and
0 deletions
contrib/start-scripts/freebsd
0 → 100644
+
58
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment