1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/databases/postgresql91-server/files/pgsql.sh.tmpl
Andreas Klemm 20d2521641 Update postgresql to 6.5.1
maintenance release with bugfixes
Thanks for the complete submission !

Submitted by:	Palle Girgensohn <girgen@partitur.se>
1999-07-21 07:16:27 +00:00

26 lines
917 B
Bash

#!/bin/sh
# $Id: pgsql.sh.tmpl,v 1.4 1998/04/21 21:51:54 andreas Exp $
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
#
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
2>&1 > !!PREFIX!!/pgsql/errlog'
echo -n ' pgsql'
}