aboutsummaryrefslogtreecommitdiff
path: root/japanese/postgresql-tcltk/files/pgsql.sh.tmpl
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>1998-09-08 15:30:19 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>1998-09-08 15:30:19 +0000
commit165d5d4db9561857e3c183949f54c39262f12386 (patch)
tree1d5281afe149d6e07a9d35a11418ce823f483cd2 /japanese/postgresql-tcltk/files/pgsql.sh.tmpl
parenta1f0638e054f8fb09ed67cb820402ae2238a2f42 (diff)
a robust, next generation, object-relational DBMS plus Multibyte-patch
Submitted by: Ichiro Fukuhara <ichiro@ichiro.org>
Notes
Notes: svn path=/head/; revision=13049
Diffstat (limited to 'japanese/postgresql-tcltk/files/pgsql.sh.tmpl')
-rw-r--r--japanese/postgresql-tcltk/files/pgsql.sh.tmpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/japanese/postgresql-tcltk/files/pgsql.sh.tmpl b/japanese/postgresql-tcltk/files/pgsql.sh.tmpl
new file mode 100644
index 000000000000..e62e65dd64b9
--- /dev/null
+++ b/japanese/postgresql-tcltk/files/pgsql.sh.tmpl
@@ -0,0 +1,25 @@
+#!/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'
+}