Re: Detaching from controlling terminal

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: Detaching from controlling terminal
Дата
Msg-id 3FB9C197.9020401@myrealbox.com
обсуждение исходный текст
Ответ на Re: Detaching from controlling terminal  (Andrey Mosienko <feo@feo.org.ru>)
Ответы Re: Detaching from controlling terminal  (Stephen Robert Norris <srn@commsecure.com.au>)
Список pgsql-general
Andrey Mosienko wrote:

> Shridhar Daithankar wrote:
>
>>Andrey Mosienko wrote:
>>
>>
>>>We are using PostgreSQL about two years beginning from version 7.0.
>>>I have one question about starting postmaster:
>>>  Is there way to detach it from the controlling terminal under FreeBSD?
>>>
>>>My situation: I start postmaster manually:
>>>
>>>su pgsql -c "/usr/local/pgsql/bin/pg_ctl
>>>-D /usr/local/pgsql/data -l /usr/local/pgsql/log/pgsql.log start"
>>
>>You can either use pg_ctl or nohup. Using pg_ctl is recommended.
>>
>
>
> su pgsql -c "/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/log/pgsql.log start"
>                    ^^^^^^^

Damn.. Sorry I missed that. Usually pg_ctl detaches from terminal.
> What is nohup?

When you start a job with nohup and put it in background, the job keeps running
even if terminal detaches.

When a terminal closes, a sighup is delivered to all applications started from
that terminal. Nohup just ignores it.

man nohup for more details.

  Shridhar


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

Предыдущее
От: "Craig O'Shannessy"
Дата:
Сообщение: Re: Detaching from controlling terminal
Следующее
От: Gianni Mariani
Дата:
Сообщение: building 7.4 with plperl