mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
22 lines
697 B
Bash
22 lines
697 B
Bash
#!/bin/sh
|
|
|
|
# $Id: pgsql.sh.tmpl,v 1.1 1997/10/03 14:13:35 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)
|
|
|
|
|
|
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
|
|
|
|
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
|
|
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster \
|
|
-D!!PREFIX!!/pgsql/data \
|
|
-S -o -F > !!PREFIX!!/pgsql/errlog' &
|
|
echo -n ' pgsql'
|
|
}
|