From: | Jeff MacDonald <jam(at)zoidtechnologies(dot)com> |
---|---|
To: | Raul Secan <raul(at)zerosoft(dot)ro> |
Cc: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: running postgresql as a linux service |
Date: | 2004-03-18 17:52:18 |
Message-ID: | 20040318175218.GQ9163@zoidtechnologies.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Thu, Mar 18, 2004 at 05:22:07PM +0200, Raul Secan wrote:
> Hello, I have succesfuly installed PostgreSQL 7.4.1, on my OS which is Red Hat Linux 9.0.
>
> I start the server with:
> $ pg_ctl -D /usr/local/pgsql/data -l logfile start
>
> And stop it with:
> $ pg_ctl -D /usr/local/pgsql/data stop -m fast
>
> There are two questions here, which I want to put to you guys:
> 1. How can make PostgreSQL run as a Linux service so database server
> starts at each reboot
run 'ntsysv' as root, and make sure the checkbox next to "postgresql" is
turned on.
> 2. How can I register the PGDATA environment variable, so I don't have to
> use -D /usr/local/pgsql/data parameter (and don't use -l logfile if it is
> posible) when run the start command
>
I generally use something like:
# /usr/sbin/service postgresql start
to start the service, and "stop" to stop it. this *should* take care of
dealing with the -D option.
> Thanks, Raul Secan.
hope that helps.
regards,
J
From | Date | Subject | |
---|---|---|---|
Next Message | Aaron | 2004-03-19 02:42:05 | Problems compiling for pgsql support |
Previous Message | Danny O'Brien | 2004-03-18 16:09:45 | PHP/Postgres db install woes -- FIXED |