X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 80C40D1EBB7 for ; Thu, 18 Mar 2004 15:11:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 80886-08 for ; Thu, 18 Mar 2004 11:11:47 -0400 (AST) Received: from mail.zerosoft.ro (main.zerosoft.ro [193.226.89.14]) by svr1.postgresql.org (Postfix) with ESMTP id CA605D1E208 for ; Thu, 18 Mar 2004 11:11:33 -0400 (AST) Received: from 192.168.16.10 by mail.zerosoft.ro ([192.168.16.1] running VPOP3) with SMTP for ; Thu, 18 Mar 2004 17:22:07 +0200 Message-ID: <001b01c40cfc$c6af5dd0$0a10a8c0@zerosoft.ro> Reply-To: "Raul Secan" From: "Raul Secan" To: Subject: running postgresql as a linux service Date: Thu, 18 Mar 2004 17:22:07 +0200 Organization: ZEROSOFT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01C40D0D.8A2F0610" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Server: VPOP3 V1.4.5 - Registered to: ZeroSoft X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=BAYES_44, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200403/44 X-Sequence-Number: 2643 This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C40D0D.8A2F0610 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=20 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 u= se -D /usr/local/pgsql/data parameter (and don't use -l logfile if it is po= sible) when run the start command Thanks, Raul Secan. ------=_NextPart_000_0018_01C40D0D.8A2F0610 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello, I have succesfuly installed Postgre= SQL=20 7.4.1, on my OS which is Red Hat Li= nux=20 9.0.
 
I start the server with:
$ pg_ctl -D /usr/local/pgsql/data -l logfi= le start=20
 
And stop it with:
$ pg_ctl -D /usr/local/pgsql/data stop -m= =20 fast
 
There are two questions here, which I want= to put=20 to you guys:
1. How can make PostgreSQL run a= s a Linux=20 service so database server starts at each reboot
2. How can I register the PGDATA environme= nt=20 variable, so I don't have to use -D /usr/local/pgsql/data parameter=20 (and don't use -l logfile if it is posible) when run the=20 start command
 
Thanks, Raul Secan.
------=_NextPart_000_0018_01C40D0D.8A2F0610--