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

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Piotr Kublicki <Piotr(dot)Kublicki(at)iop(dot)org>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Start-up script for few clusters: just add water?
Date: 2010-04-29 15:01:18
Message-ID: 4BD99F3E.4060001@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Le 29/04/2010 10:40, Piotr Kublicki a écrit :
> Guillaume Lelarge <guillaume(at)lelarge(dot)info> wrote on 28/04/2010 15:04:07:
>
>>> 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.
>
> Thanks again. By the way, if I want to start instances with few optional
> arguments, as -S or -B where can I include these? In the same config file,
> i.e. /etc/sysconfig/pgsql/postgresql (speaking about RedHat directories
> structure)?
>

I don't think so. I suppose you will have to change the
/etc/init.d/postgresql script (or the one of your other instances).

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Wall 2010-04-29 16:07:52 Re: Storing many big files in database- should I do it?
Previous Message A. Kretschmer 2010-04-29 14:57:58 Re: using between with dates