Re: BUG #4435: pg_ctl start doesn't detach when run via SSH

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4435: pg_ctl start doesn't detach when run via SSH
Дата
Msg-id 17905.1222226204@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #4435: pg_ctl start doesn't detach when run via SSH  (Steve Clark <sclark@netwolves.com>)
Список pgsql-bugs
Steve Clark <sclark@netwolves.com> writes:
> Hal Black wrote:
>> When I run "pg_ctl start" via SSH, the database service starts, but it never
>> returns control to the shell.  If I run the same command from an interactive
>> shell, it works as expected.
>>
>> This is with or without the -w option.  Here's an example commandline.
>>
>> ssh root@example.com "su -c '/home/appuser/local/bin/pg_ctl start -w -s -D
>> /home/appuser/postgresql_data' postgres"

> try using ssh -t ...

Actually I suspect the main problem is having failed to redirect the
postmaster's stdout/stderr away from the terminal.  Consider using
pg_ctl's "-l logfile" option.

Another point is that su's -l option might be a good idea.  I'm
unconvinced that you're setting up a desirable environment for the
postmaster here --- it's going to be mostly root's environment.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] 0x1A in control file on Windows
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4434: Error inserting into view - unrecognized node type: 313