summaryrefslogtreecommitdiff
path: root/databases/postgresql7/files/pgsql.sh.tmpl
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>1997-10-03 14:13:36 +0000
committerAndreas Klemm <andreas@FreeBSD.org>1997-10-03 14:13:36 +0000
commit8f5d33e0f1106b4b95155ee6f215edec281f74e6 (patch)
tree08a98fbfe0b7af73add2a91b13c99d6c7a1f9194 /databases/postgresql7/files/pgsql.sh.tmpl
parentUpgrade to v2.3.11 (diff)
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
Notes
Notes: svn path=/head/; revision=8095
Diffstat (limited to 'databases/postgresql7/files/pgsql.sh.tmpl')
-rw-r--r--databases/postgresql7/files/pgsql.sh.tmpl21
1 files changed, 21 insertions, 0 deletions
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'
+}