| От | Tom Lane |
|---|---|
| Тема | Re: How to implement autostart of postgres? |
| Дата | |
| Msg-id | 25507.1311259257@sss.pgh.pa.us обсуждение |
| Ответ на | How to implement autostart of postgres? ("Gavrina, Irina" <igavrina@mera.ru>) |
| Список | pgsql-general |
"Gavrina, Irina" <igavrina@mera.ru> writes:
> I've faced with the following problem: I'm trying to implement the auto
> start of postgres. My way is to use inittab:
> pg:2345:respawn:/bin/su - postgres -c "/usr/local/pgsql/bin/postmaster
> -D/usr/local/pgsql/data >> /usr/local/pgsql/server.log 2>&1" /dev/null
> But this approach does not work as I wished in case of the postmaster
> process dies - it can not be restarted until all child processes are
> stopped. And I have to do it manually.
If the postmaster is dying often enough that this is a serious concern,
you have problems you need to fix. If this is Linux, maybe you need
to prevent the OOM killer from touching the postmaster?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера