running second instance - Mailing list pgsql-novice

From Oeschey, Lars (I/EK-142, extern)
Subject running second instance
Date
Msg-id 17A09E9509BB354E95C2FEE5102B0F5F0131567D@audiinsx0036.audi.vwg
Whole thread Raw
List pgsql-novice
Hi,

we need to run a second instance of PostgreSQL on one machine (RHEL5).
What I did:

made a /var/lib/pgsql2 directory
made a new link /usr/bin/postmaster2 -> postgres
edited /var/lib/pgsql2/data/postmaster.opts regarding link and port:
    /usr/bin/postgres -D /var/lib/pgsql2/data
copied the init script and edited port and directories in the copy.

while the database starts when started manually, it won't through the
init script. This is where the problem seems to be with a "sh -x
/etc/init.d/postgres2 start":

postgresql2-Dienst starten:+ runuser -l postgres -c
'/usr/bin/postmaster2 -p '\''5433'\'' -D '\''/var/lib/pgsql2/data'\''
&'
+ sleep 2
++ pidof -s /usr/bin/postmaster2
+ pid=
+ '[' ']'
+ failure 'postgresql2-Dienst starten:'

it seems it doesn't get the pid correctly.
Does somebody have an idea where to check for mistakes?

Lars

pgsql-novice by date:

Previous
From: "Brett Maton"
Date:
Subject: Problem with PG_GETARG_CSTRING
Next
From: Tom Lane
Date:
Subject: Re: Problem with PG_GETARG_CSTRING