Re: Start-up script for few clusters: just add water?

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Start-up script for few clusters: just add water?
Дата
Msg-id 4BD84057.3080708@lelarge.info
обсуждение исходный текст
Ответ на Start-up script for few clusters: just add water?  (Eustace Scrubb <piotr.kublicki@iop.org>)
Ответы Re: Start-up script for few clusters: just add water?  (Piotr Kublicki <Piotr.Kublicki@iop.org>)
Re: Start-up script for few clusters: just add water?  (Piotr Kublicki <Piotr.Kublicki@iop.org>)
Список pgsql-general
Le 28/04/2010 14:05, Piotr Kublicki a écrit :
> Hi Guillaume,
>
> Excellent point:
>
>> Suppose I have a second cluster. I'll have to do this :
>>
> cd /etc/init.d
> cp postgresql postgresql2
> cd /etc/sysconfig/pgsql
> cp postgresql postgresql2
> $EDITOR postgresql2
>
> In $EDITOR, I'll change the different environment values I want. For
> example:
>> PGPORT=5567
>> PGDATA=/db/second_cluster
>
> In such case the new created start-up script postgresql2 should not be
> modified in the following line:
>
> # Override defaults from /etc/sysconfig/pgsql if file is present
> [ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}
>
> export PGDATA
> export PGPORT
>
> Or it will automatically match-up names from both directories, i.e.:
> /etc/init.d/postgresql   will run   /etc/sysconfig/pgsql/postgresql?
>
> /etc/init.d/postgresql2   will run   /etc/sysconfig/pgsql/postgresql2
>

The latter. It will automatically match the script file name and the
config file name.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Bryan Murphy
Дата:
Сообщение: Re: Postgresql on EC2/EBS in production?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Notification of Limited Account Access