Re: starting postgres on red hat

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: John <lists(at)johndubchak(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: starting postgres on red hat
Date: 2008-09-11 18:14:34
Message-ID: dcc563d10809111114p5d46ba75hd8d108ac19a671c5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Sep 11, 2008 at 11:36 AM, John <lists(at)johndubchak(dot)com> wrote:
> Scott Marlowe wrote:
>>
>> Oh yeah, please note that the proper way to start and stop services on
>> RH oses is via the service command:
>>
>> service postgresql start
>> service postgresql initdb
>>
>> etc..
>
> Scott,
>
> How does the above compare with using postmaster to start Postgres?
>
> I tried in the past to use the "service postgresql start" command, but
> couldn't connect from a java application and have gotten in the habit of
> using a script that uses postmaster to append a "-i" to the command line to
> allow TCP/IP connections.

Yeah, you can't stop / stop services as anything but root on centos.
so unless you were running the receiving end to the java app as root,
it wouldn't be able to restart pgsql.

On ubuntu the postgres account can restart with
/etc/init.d/postgresql, nice feature.

> Can that be configured in postgresql.conf?

Yes, it's the line where you tell it what host adapters to use, or on
older pgsql's also the tcp_connection parameter (I think I spelt it
right, been a while)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2008-09-11 18:17:29 Re: starting postgres on red hat
Previous Message John 2008-09-11 18:00:04 Re: starting postgres on red hat