Re: Checking that Pg is running from a shell script

Поиск
Список
Период
Сортировка
От Lamar Owen
Тема Re: Checking that Pg is running from a shell script
Дата
Msg-id 200206101357.20297.lamar.owen@wgcr.org
обсуждение исходный текст
Ответ на Checking that Pg is running from a shell script  (Fran Fabrizio <ffabrizio@mmrd.com>)
Список pgsql-general
On Monday 10 June 2002 10:29 am, Fran Fabrizio wrote:
> What's the best way to ensure that Pg is running from a shell script?
>  I'm crafting a few RPMs for my projects, one of which will attempt to
> load data into a database, but I want to check that it's running first
> before I try this.

See the man page for pg_ctl.  There is, IIRC, a status option, but you have to
know the location of PGDATA (which, in a vanilla RPM install is
/var/lib/pgsql/data).
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

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

Предыдущее
От: Thomas Beutin
Дата:
Сообщение: Re: Checking that Pg is running from a shell script
Следующее
От: Fran Fabrizio
Дата:
Сообщение: Re: Checking that Pg is running from a shell script