Skip site navigation (1) Skip section navigation (2)

running second instance

From: "Oeschey, Lars (I/EK-142, extern)" <extern(dot)Lars(dot)Oeschey(at)AUDI(dot)DE>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: running second instance
Date: 2007-10-12 13:56:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

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?


pgsql-novice by date

Next:From: Tom LaneDate: 2007-10-12 15:10:35
Subject: Re: Problem with PG_GETARG_CSTRING
Previous:From: Brett MatonDate: 2007-10-12 11:32:04
Subject: Problem with PG_GETARG_CSTRING

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group