From 8f5d33e0f1106b4b95155ee6f215edec281f74e6 Mon Sep 17 00:00:00 2001 From: Andreas Klemm Date: Fri, 3 Oct 1997 14:13:36 +0000 Subject: Upgrade from version 6.1.1 to 6.2 Please note: when performing a migration to 6.2 and you have an existing db, then you have to use the *new* pg_dumpall script that comes with this new postgresql release. The INSTALL file points this out explicitely !!! Changes: - startup script resides in FILESDIR - renamed it to be in sync with INSTALL file from sources - always install this startup script over an existing, because of the nature of the rc.d directory I can't install it to pgsql.sh-dist, if a pgsql.sh is already presend ... - portlint detected trailing whitespace, usage of perl with absolute path, usage of echo instead of ECHO and plenty things of this kind - post installation notes updated, mentioned the mailing list - copies the html pages as well to the share/doc directory (new manual dir) - had to update PLIST - shortened DESCR file, to match the 24 lines - added post build target, that reminds the admin how to proceed when already having a database -> INSTALL file describes migration - updated manpages --- databases/postgresql7/files/pgsql.sh.tmpl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 databases/postgresql7/files/pgsql.sh.tmpl (limited to 'databases/postgresql7/files/pgsql.sh.tmpl') diff --git a/databases/postgresql7/files/pgsql.sh.tmpl b/databases/postgresql7/files/pgsql.sh.tmpl new file mode 100644 index 000000000000..7321cf4f4723 --- /dev/null +++ b/databases/postgresql7/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' +} -- cgit v1.2.3