From: Gonzales,S <gonzales_speedy@fastmail.fm>
To: pgsql-admin@postgresql.org
Subject: Running 2 postmaster Instances on different ports
Date: Tue, 05 Oct 2004 19:12:38 +0200
Message-ID: <cjukma$nab$1@ikaria.belnet.be> (raw)
Environement: debian, postgresql 7.4.5
This is my problem:
"/etc/init.d/postgresql2 restart
Stopping PostgreSQL database server: postmasterpg_ctl: could not find
/var/lib/postgres/data2/postmaster.pid
Is postmaster running?
.
Starting PostgreSQL database server: postmaster(FAILED)
ERROR: pg_ctl: Another postmaster may be running. Trying to start
postmaster anyway.
pg_ctl: cannot start postmaster
Examine the log output."
The problem seems to be the "/etc/postmaster.conf",
this file seems to be used by both postmaster instances,
but since both postmaster instances have different data-dirs (two
different clusters), this is a problem. I would like the two clusters to
be started at boottime automatically.
I changed all the references in the "/etc/init.d/postgresql2" script to
the files in data-dir of second instance (with an adapted copy
postmaster.conf), but still this doesnt do the trick.
How do i solve this problem?
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: gonzales_speedy@fastmail.fm
Subject: Re: Running 2 postmaster Instances on different ports
In-Reply-To: <cjukma$nab$1@ikaria.belnet.be>
References: <cjukma$nab$1@ikaria.belnet.be>
* 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