From: Darko Prenosil <Darko.Prenosil@finteh.hr>
To: Postgre General <pgsql-general@postgresql.org>
To: Reid Thompson <Reid.Thompson@ateb.com>
Subject: Re: How can I set postmaster as a service
Date: Sat, 6 Sep 2003 11:22:50 +0200
Message-ID: <003f01c37458$8b0105f0$0982bfd5@darko> (raw)
References: <64AE3D5B518E3648ACC823FBCB0B7375B6D305@sr002-2kexc.ateb.com>
<008601c37454$58df9b30$1201a8c0@a4005>
----- Original Message -----
From: "shreedhar" <shreedhar@lucidindia.net>
To: "Postgre Admin" <pgsql-admin@postgresql.org>; "Postgre General"
<pgsql-general@postgresql.org>; "Reid Thompson" <Reid.Thompson@ateb.com>
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 !
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Darko.Prenosil@finteh.hr, pgsql-general@postgresql.org, Reid.Thompson@ateb.com
Subject: Re: How can I set postmaster as a service
In-Reply-To: <003f01c37458$8b0105f0$0982bfd5@darko>
References: <64AE3D5B518E3648ACC823FBCB0B7375B6D305@sr002-2kexc.ateb.com> <008601c37454$58df9b30$1201a8c0@a4005> <003f01c37458$8b0105f0$0982bfd5@darko>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox