1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-26 21:17:40 +00:00
freebsd-ports/japanese/postgresql7/files/pgsql.sh.tmpl
Jun Kuriyama 165d5d4db9 a robust, next generation, object-relational DBMS plus Multibyte-patch
Submitted by:	Ichiro Fukuhara <ichiro@ichiro.org>
1998-09-08 15:30:19 +00:00

26 lines
857 B
Bash

#!/bin/sh
# $Id: $
# 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!!PG_PATH!!/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PG_PATH!!/.profile
#
[ -d !!PG_PATH!!/lib ] && /sbin/ldconfig -m !!PG_PATH!!/lib
[ -x !!PG_PATH!!/bin/postmaster ] && {
su -l !!PGSQL_UID!! -c 'exec !!PG_PATH!!/bin/postmaster -i -S -o -F \
-D!!PG_PATH!!/data > !!PG_PATH!!/errlog'
echo -n ' PostgreSQL'
}