Thread: help about service postgres

help about service postgres

From
Vinni B
Date:

Hi.

I�m work postgres in linux red jat 7.3 and up service with the command

>> service postgresql start

The service ok. But i like run postgres in network automatic..

No automatic run the command

>> su - postgres

>> /usr/bin/postmaster -i

My question is how configure postgres for automatic run, is possible ?

thanks

Ing . Giovanni Brice�o

Novice postgres and linux



Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

Re: help about service postgres

From
"Josh Berkus"
Date:
Giovanni,

Unfortunately, I'm not sure how your "service" command works.   Is
anybody else familiar with this from Red Hat?

The command that you need to be passing to your back-end is:

su -c "<postgres dir>/bin/pg_ctl -o '-i' -l <log file location> -D
<postgres dir>/data" postgres

... where <postgres dir> and <log file location> are replaced with the
actual locations for those files/directories on your system.

-Josh Berkus