Skip site navigation (1) Skip section navigation (2)

running postgresql as a linux service

From: "Raul Secan" <raul(at)zerosoft(dot)ro>
To: <pgsql-php(at)postgresql(dot)org>
Subject: running postgresql as a linux service
Date: 2004-03-18 15:22:07
Message-ID: 001b01c40cfc$c6af5dd0$0a10a8c0@zerosoft.ro (view raw or flat)
Thread:
Lists: pgsql-php
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
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

Thanks, Raul Secan.

Responses

pgsql-php by date

Next:From: Ron St-PierreDate: 2004-03-18 15:57:09
Subject: Re: running postgresql as a linux service
Previous:From: Aldo Leyva AlvaradoDate: 2004-03-17 22:43:15
Subject: Re: FUNCTIONS

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group