Обсуждение: Starting the Server at Boot

Поиск
Список
Период
Сортировка

Starting the Server at Boot

От
Hunter Hillegas
Дата:
I tried to check the archives but I couldn't find a way to search...

Anyway, I want to start my Postgres server at boot (7.1). I tried the script
that came with it and it doesn't work. It seems to start the server but it
doesn't accept connections (yes, the -i option is on)... Is there a trick?

I'm using RedHat 6 so it's a SysV boot...

Any help is appreciated.

Hunter


RE: Starting the Server at Boot

От
"Christian Marschalek"
Дата:
> I tried to check the archives but I couldn't find a way to search...

> TIP 6: Have you searched our list archives?
>
http://www.postgresql.org/search.mpl



Tried to configure <your data dir>/pg_hba.conf

?


Re: Starting the Server at Boot

От
Peter Eisentraut
Дата:
Hunter Hillegas writes:

> Anyway, I want to start my Postgres server at boot (7.1). I tried the script
> that came with it and it doesn't work. It seems to start the server but it
> doesn't accept connections (yes, the -i option is on)... Is there a trick?

Enable it in the postgresql.conf file.  (The -i option should work.
Odd...)

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Re: Starting the Server at Boot

От
Joel Burton
Дата:
On Thu, 3 May 2001, Peter Eisentraut wrote:

> Hunter Hillegas writes:
>
> > Anyway, I want to start my Postgres server at boot (7.1). I tried the script
> > that came with it and it doesn't work. It seems to start the server but it
> > doesn't accept connections (yes, the -i option is on)... Is there a trick?
>
> Enable it in the postgresql.conf file.  (The -i option should work.
> Odd...)

Perhaps the reason that -i didn't work is that the scripts use pg_ctl.
Don't the options for that need to be wrapped in -o, as in '-o "-i"'.
It's easy to get that wrong.

--
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington