Re: restarting after power outage

Поиск
Список
Период
Сортировка
От Peter Wiersig
Тема Re: restarting after power outage
Дата
Msg-id 20050427194556.GC4032@london087.server4you.de
обсуждение исходный текст
Ответ на Re: restarting after power outage  (Doug McNaught <doug@mcnaught.org>)
Список pgsql-general
On Wed, Apr 27, 2005 at 03:03:50PM -0400, Doug McNaught wrote:
>
> What I have done is to create a separate init.d script that
> removes the PID file, and arrange for it to run before the PG
> startup script.

An even better place (if you really want to do all this) would be
something that happens only at boot time.

On a Debian system a skript linked to /etc/rcS.d/ would be in
order, on SUSE I would rm it in /etc/init.d/boot.local.


But I advise against it. Do things like that manually after you've
checked that your pgsql-partition is mounted and filled with
correct data.

Some of the distributed init.d skripts for starting postgres also
initdb the data-location if they think they should. That can lead
to the total loss of your cluster.

--
Peter

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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: restarting after power outage
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: populating a table via the COPY command using C code.