running second instance

Поиск
Список
Период
Сортировка
От Oeschey, Lars (I/EK-142, extern)
Тема running second instance
Дата
Msg-id 17A09E9509BB354E95C2FEE5102B0F5F0131567D@audiinsx0036.audi.vwg
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Brett Maton"
Дата:
Сообщение: Problem with PG_GETARG_CSTRING
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with PG_GETARG_CSTRING