Re: starting PGSQL automatically on Redhat 6.2

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: Ryan Mahoney <ryan(at)paymentalliance(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: starting PGSQL automatically on Redhat 6.2
Date: 2001-01-09 21:06:39
Message-ID: Pine.LNX.4.30.0101091605110.32554-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 9 Jan 2001, Ryan Mahoney wrote:

> Hey all, I copied the pg_ctl script and placed it in my /etc/rc.d/init.d/
> directory and renamed it 'postgres'. I then made all the necessary symbolic
> links. When my machine boots up however, pgsql does not start up because it
> cannot be started by root. I have created the 'postgres' user and data
> directories. I can start PG manually just fine. Can someone post or mail a
> working startup script/recommend any changes to pg_ctl? Thanks!

You need to su to the postgres user in your script to start the
postmaster:

su postgres -c "postmaster -i ... "

There's a complete example in the installation docs.

-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
History is the version of past events that people have decided to agree on.
-- Napoleon Bonaparte, "Maxims"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lee Joramo 2001-01-09 21:12:38 Re: Re: COPY error: pqReadData() -- backend closed the channel unexpectedly
Previous Message Bruce Momjian 2001-01-09 20:35:10 Removal of book PDF