1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/databases/postgresql73-server/files/pgsql.sh.tmpl
Andreas Klemm 36f89aec96 Upgrade postgresql to version 6.3.2
Many bugfixes and cosmetic changes
Changes by Scrappy and me
My additional changes:
- had to link libpgtcl.so with the crypt library to get rid of the
  pgaccess error message, that crypt is missing
- had to add -i option in the startup script, so that pgaccess is
  able to connect to the postmaster process
- removed all unnecessary patches
- updated PLIST
Thanks to the postgresql developement team, who did a great job to
simplify the postgresql port, by applying the patches and making
the autoconf mechanism more consistent.
Submitted by:	The Hermit Hacker <scrappy@hub.org>
1998-04-21 21:52:10 +00:00

26 lines
936 B
Bash

#!/bin/sh
# $Id: pgsql.sh.tmpl,v 1.3 1997/10/05 21:00:49 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 \
-D!!PREFIX!!/pgsql/data > !!PREFIX!!/pgsql/errlog'
echo -n ' pgsql'
}