Re: starting server at boot

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: starting server at boot
Дата
Msg-id 29201.967844758@sss.pgh.pa.us
обсуждение исходный текст
Ответ на starting server at boot  ("Adam Lang" <aalang@rutgersinsurance.com>)
Список pgsql-general
"Adam Lang" <aalang@rutgersinsurance.com> writes:
> nohup su -c 'postmaster -i -D /usr/local/pgsql/data > server.log 2>&1'
> postgres &

nohup su seems a little odd; I'd expect the nohup command to affect the
su process itself, but I'm not at all sure that su would allow the
nonstandard signal-handling state to propagate through to the command
it executes.

Try
    su -c 'nohup postmaster ... 2>&1  &' postgres
instead.

This should also eliminate nohup's desire to make a useless output
file...

            regards, tom lane

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

Предыдущее
От: Dave Smith
Дата:
Сообщение: Re: Increasing system speed by using -F option
Следующее
От: Tom Lane
Дата:
Сообщение: Re: install 7.0.2 host