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 7EAF2D1B979 for ; Sat, 6 Sep 2003 09:27:10 +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 62173-04 for ; Sat, 6 Sep 2003 06:26:40 -0300 (ADT) Received: from curry.tmsl.demon.co.uk (tmsl-adsl.demon.co.uk [80.177.114.181]) by svr1.postgresql.org (Postfix) with ESMTP id D9404D1B9A1 for ; Sat, 6 Sep 2003 06:26:37 -0300 (ADT) Received: from bacon.tmsl.demon.co.uk (bacon.tmsl.demon.co.uk [192.168.7.102]) by curry.tmsl.demon.co.uk (8.11.6/8.11.6) with ESMTP id h869QNa24102; Sat, 6 Sep 2003 10:26:23 +0100 Date: Sat, 6 Sep 2003 10:26:21 +0100 From: Paul Thomas To: shreedhar Cc: "pgsql-general @ postgresql . org" Subject: Re: How can I set postmaster as a service Message-ID: <20030906102621.A20928@bacon> References: <64AE3D5B518E3648ACC823FBCB0B7375B6D305@sr002-2kexc.ateb.com> <008601c37454$58df9b30$1201a8c0@a4005> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <008601c37454$58df9b30$1201a8c0@a4005>; from shreedhar@lucidindia.net on Sat, Sep 06, 2003 at 09:53:29 +0100 X-Mailer: Balsa 1.2.3 Lines: 44 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/491 X-Sequence-Number: 48713 On 06/09/2003 09:53 shreedhar wrote: > 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. su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster '-p ${PGPORT}' start -o \" -i \" > /dev/null 2>&1" < /dev/null or in postgresql.conf tcpip_socket = true HTH -- Paul Thomas +------------------------------+---------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+---------------------------------------------+