Re: postmaster -S will not print an error if pid file exists

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postmaster -S will not print an error if pid file exists
Дата
Msg-id 3773.980543015@sss.pgh.pa.us
обсуждение исходный текст
Ответ на postmaster -S will not print an error if pid file exists  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> If a second postmaster is started on a data directory and the second one
> uses the -S option it will not print a message but simply exit and not
> start a background process.  The exit status is 0.

Since the whole point of -S is to throw away stdout/stderr, I hardly
see how you can complain about the fact that the error message went
to /dev/null.  I agree that zero exit status is not good, however;
will see if I can fix that.
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Sure enough, the lock file is gone
Следующее
От: Tom Lane
Дата:
Сообщение: Re: This script will crash the connection