X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C69A4D1B8C5 for ; Sat, 6 Sep 2003 09:17:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 63395-01 for ; Sat, 6 Sep 2003 06:17:21 -0300 (ADT) Received: from mx.iskon.hr (mx.iskon.hr [213.191.128.12]) by svr1.postgresql.org (Postfix) with SMTP id 1E901D1B97B for ; Sat, 6 Sep 2003 06:17:18 -0300 (ADT) Received: (qmail 21688 invoked from network); 6 Sep 2003 11:17:18 +0200 Received: from zg03-225.dialin.iskon.hr (HELO darko) (213.191.135.226) by mx.iskon.hr with SMTP; 6 Sep 2003 11:17:18 +0200 Message-ID: <003f01c37458$8b0105f0$0982bfd5@darko> From: "Darko Prenosil" To: "Postgre General" , "Reid Thompson" References: <64AE3D5B518E3648ACC823FBCB0B7375B6D305@sr002-2kexc.ateb.com> <008601c37454$58df9b30$1201a8c0@a4005> Subject: Re: How can I set postmaster as a service Date: Sat, 6 Sep 2003 11:22:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/490 X-Sequence-Number: 48712 ----- Original Message ----- From: "shreedhar" To: "Postgre Admin" ; "Postgre General" ; "Reid Thompson" Sent: Saturday, September 06, 2003 10:53 AM Subject: Re: [GENERAL] How can I set postmaster as a service > I already had postgresql file in /etc/rc.d/init.d. > I run the following ln commands as specified. > if I boot my system it is opening database. But failing while opening > database by remote host. > May be -i option is missing. > > If I use the following line in postgresql file > su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p > /usr/bin/postmaster -o '-p ${PGPORT}' start > /dev/null 2>&1" < /dev/null > > I could able to start database but I could not able to connect through > remost host. > > If I change the option -o to -i I am getting an error while starting > database itself. > > su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p > /usr/bin/postmaster -i '-p ${PGPORT}' start > /dev/null 2>&1" < /dev/null > > How can I rectify this error. > You do not need to change startup script, becuause there is option for enabling tcp/ip in the postgresql configuration file. Regards !