Re: postgresql start/stop/status script

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: postgresql start/stop/status script
Дата
Msg-id 200504200813.04658.peter_e@gmx.net
обсуждение исходный текст
Ответ на postgresql start/stop/status script  (Baldur Norddahl <bbn-pgsql.general@clansoft.dk>)
Ответы Re: postgresql start/stop/status script
Re: postgresql start/stop/status script
Список pgsql-general
Baldur Norddahl wrote:
> Is there a better way to query the status of postgresql? I would
> expect it to at least check that the process in the PID is actually
> running and that it is a postgresql process.

Maybe try

test $(readlink /proc/$pid/exe) = /usr/bin/postgres

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: Alexandre
Дата:
Сообщение: Re: Simplified (a-la [G|N]DBM) DB access
Следующее
От: Alexandre
Дата:
Сообщение: Re: Simplified (a-la [G|N]DBM) DB access