Re: How can I set postmaster as a service - Mailing list pgsql-general

From Paul Thomas
Subject Re: How can I set postmaster as a service
Date
Msg-id 20030906102621.A20928@bacon
Whole thread Raw
In response to Re: How can I set postmaster as a service  ("shreedhar" <shreedhar@lucidindia.net>)
List pgsql-general
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   |
+------------------------------+---------------------------------------------+

pgsql-general by date:

Previous
From: "Darko Prenosil"
Date:
Subject: Re: How can I set postmaster as a service
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: tsearch2 and unexpected exists (Function defn)