Re: How to check postgres running or not ?

Поиск
Список
Период
Сортировка
От Worik
Тема Re: How to check postgres running or not ?
Дата
Msg-id 414E25B3.9070309@noggon.com
обсуждение исходный текст
Ответ на Re: How to check postgres running or not ?  (Gaetano Mendola <mendola@bigfoot.com>)
Ответы Re: How to check postgres running or not ?
Список pgsql-sql

[snip]
> 
> 
> Just to enforce the test is better looking for the entire executable path:
> 
>         ps aux | grep /usr/bin/postmaster | grep -v grep
> 

Does not work for me!

worik@stolberg:~$ ps aux | grep /usr/bin/postmaster | grep -v grep
worik@stolberg:~$ ps aux | grep postmaster | grep -v grep
postgres   670  0.1  0.6  8544 1688 pts/1    S    12:33   0:00 
/usr/lib/postgresql/bin/postmaster
worik@stolberg:~$

So...
" ps aux | grep postmaster | grep -v grep "
is more reliable(?)

cheers
Worik

> 
> 
> Regards
> Gaetano Mendola
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 
> 
> 


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: How to check postgres running or not ?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: ORDER BY and NULLs