Re: Trying to auto start Postgres when server boots up

From: "Jonel Rienton" <jonel(at)rientongroup(dot)com>
To: "'Shahid Butt'" <Shahid(dot)Butt(at)nccedu(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trying to auto start Postgres when server boots up
Date: 2006-02-07 01:15:59
Message-ID: 001501c62b84$0e343de0$0200a8c0@aspire
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

This might be trivial, but, shouldn't you su to the user(postgres or
whatever you used) that's supposed to run the postmaster?

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Shahid Butt
Sent: Monday, February 06, 2006 9:34 AM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Trying to auto start Postgres when server boots up

Hi,

I am using PostgreSQL 7.4.7 and Red Hat Enterprise Linux 4.

I want to start the Postgres Postmaster automatically when the server boots
up.
I have tried putting the command
"/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l
/usr/local/pgsql/data/server.log start"
In the /etc/rc.d/rc.local file but when the server boots up it gets
stuck at the point "Enabling swap space [OK]".
Usually the Red Hat desktop would come up but it doesn't.

Any ideas?

Regards,

Shahid Butt
IT Systems Developer

shahid(dot)butt(at)nccedu(dot)com

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/252 - Release Date: 2/6/2006

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2006-02-07 01:51:34 Re: Trying to auto start Postgres when server boots up
Previous Message Greg Sabino Mullane 2006-02-07 01:01:41 Re: Any way to make PG driver obey PrintWarn?