pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Clift <jclift@iprimus.com.au>
To: pgsql-docs@postgresql.org
Subject: Error in documentation
Date: Wed, 02 May 2001 21:34:51 +1000
Message-ID: <3AEFF0DB.6E5A5FC4@iprimus.com.au> (raw)

Hi guys,

Just noticed an error in the 7.1.1 developer docs.

In the Admin Guide, in chapter 3.3 "Starting the database server" it
says :

***

On Solaris, edit the file rc2.d to contain the following single line: 

su - postgres -c "/usr/local/pgsql/bin/pg_ctl start -l logfile -D
/usr/local/pgsql/data"

***

This is BADLY WRONG and won't work at all.

Instead the person installing PostgreSQL needs to create a startup
script as /etc/init.d/postgresql, then create a soft link from
/etc/rc3.d/S[00..99]postgresql that script.

The script though, can use the su command given above.

i.e.

echo 'su - postgres -c "/usr/local/pgsql/bin/pg_ctl start -l logfile -D
/usr/local/pgsql/data"' > /etc/init.d/postgresql
chmod 744 /etc/init.d/postgresql
chown root:sys /etc/init.d/postgresql
ln -s /etc/init.d/postgresql /etc/rc3.d/S10postgresql

I haven't tried looking at the documentation .sgml source files and
creating a patch, but if you guys want me to, I guess I could figure it
out.

Regards and best wishes,

Justin Clift

-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi



view thread (8+ messages)  latest in thread

Message-ID: <3AEFF0DB.6E5A5FC4@iprimus.com.au>
Permalink:  ../3AEFF0DB.6E5A5FC4@iprimus.com.au/
Also on:    postgresql.org/message-id/3AEFF0DB.6E5A5FC4@iprimus.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: jclift@iprimus.com.au
  Subject: Re: Error in documentation
  In-Reply-To: <3AEFF0DB.6E5A5FC4@iprimus.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox