diff options
author | Andreas Klemm <andreas@FreeBSD.org> | 1997-10-03 14:13:36 +0000 |
---|---|---|
committer | Andreas Klemm <andreas@FreeBSD.org> | 1997-10-03 14:13:36 +0000 |
commit | 8f5d33e0f1106b4b95155ee6f215edec281f74e6 (patch) | |
tree | 08a98fbfe0b7af73add2a91b13c99d6c7a1f9194 /databases/postgresql82-server/files/pgsql.sh.tmpl | |
parent | 55b5c070e5c985b9b361a087bc0cdcadf0d59a86 (diff) |
Notes
Diffstat (limited to 'databases/postgresql82-server/files/pgsql.sh.tmpl')
-rw-r--r-- | databases/postgresql82-server/files/pgsql.sh.tmpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/databases/postgresql82-server/files/pgsql.sh.tmpl b/databases/postgresql82-server/files/pgsql.sh.tmpl new file mode 100644 index 000000000000..7321cf4f4723 --- /dev/null +++ b/databases/postgresql82-server/files/pgsql.sh.tmpl @@ -0,0 +1,21 @@ +#!/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) + + +[ -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' +} |