"pg_ctl promote" exit status

Поиск
Список
Период
Сортировка
От Dhruv Ahuja
Тема "pg_ctl promote" exit status
Дата
Msg-id CANv0W22QOkw3i7R4YKX0PeDdteW-hJSbK8=ynkmozYTAyTzOww@mail.gmail.com
обсуждение исходный текст
Ответы Re: "pg_ctl promote" exit status  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-cluster-hackers
Hello

The "pg_ctl promote" command returns an exit code of 1 when the server
is not in standby mode, and the same exit code of 1 when the server
isn't started at all. The only difference at the time being is the
string output at the time, which FYI are...

pg_ctl: cannot promote server; server is not in standby mode

...and...

pg_ctl: PID file "/var/lib/pgsql/9.1/data/postmaster.pid" does not exist
Is server running?

...respectively.

I am in the process of developing a clustering solution around luci
and rgmanager (in Red Hat EL 6) and for the time being, am basing it
off the string output. Maybe each different exit reason should have a
unique exit code, whatever my logic and approach to solving this
problem be?


Thanks
Dhruv


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

Предыдущее
От: John Nash
Дата:
Сообщение: WebSphere Application Server support for postgres
Следующее
От: Robert Haas
Дата:
Сообщение: Re: "pg_ctl promote" exit status