| От | Tom Lane |
|---|---|
| Тема | Re: startup script for Solaris |
| Дата | |
| Msg-id | 2006.971811517@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | startup script for Solaris ("Martin A. Marques" <martin@math.unl.edu.ar>) |
| Список | pgsql-general |
"Martin A. Marques" <martin@math.unl.edu.ar> writes:
> Has somebody made a script to start and stop the postmaster on Solaris? I'm
> having a hard time trying to do the stop part of the script, I just can't
> find an elegant way to kill the process and eliminate the socket lock that's
> left in /tmp.
As long as you kill the postmaster with something less brute-force than
'kill -9', it should remove the socket file by itself. SIGTERM is
recommended for graceful shutdown, SIGINT if you want to abort open
client sessions rather than letting them finish. Note it's important
to send this signal to the postmaster, not to one of its children.
See the pg_ctl script for more ideas.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера