diff options
author | Andreas Klemm <andreas@FreeBSD.org> | 1997-10-05 21:00:49 +0000 |
---|---|---|
committer | Andreas Klemm <andreas@FreeBSD.org> | 1997-10-05 21:00:49 +0000 |
commit | a53f1f9a5eba357f0d06c10990f9c9de3521bce1 (patch) | |
tree | 89d03d4be89aa874637e26b5486ffaa2b703b4cb /databases/postgresql74-server/files | |
parent | Activate platex-{common,euc,jis,sjis} and detach platex. (diff) |
- remove the ampersand, postmaster process automatically goes into
background because of the -S option.
- remove the -D datadir option, it's meaningless, because the pgsql
user environment overwrites it with the PGDATA env variable.
Since this is important and might cause some headache, I mentioned
this in ~pgsql/.profile and the startup script.
Submitted by: John Fiber
Notes
Notes:
svn path=/head/; revision=8127
Diffstat (limited to 'databases/postgresql74-server/files')
-rw-r--r-- | databases/postgresql74-server/files/pgsql.sh.tmpl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/databases/postgresql74-server/files/pgsql.sh.tmpl b/databases/postgresql74-server/files/pgsql.sh.tmpl index 35fba3937698..9fd81e4ff367 100644 --- a/databases/postgresql74-server/files/pgsql.sh.tmpl +++ b/databases/postgresql74-server/files/pgsql.sh.tmpl @@ -1,6 +1,6 @@ #!/bin/sh -# $Id: pgsql.sh.tmpl,v 1.1 1997/10/03 14:13:35 andreas Exp $ +# $Id: pgsql.sh.tmpl,v 1.2 1997/10/03 18:26:54 andreas Exp $ # pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested) @@ -9,13 +9,17 @@ # - 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!!PREFIX!!/pgsql/data \ +# because the postmaster process, which starts up under the +# environment of the pgsql user, sets this with the PGDATA +# environment variable in !!PREFIX!!/pgsql/.profile +# [ -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' & + -S -o -F > !!PREFIX!!/pgsql/errlog' echo -n ' pgsql' } |