Re: How to check postgres running or not ? - Mailing list pgsql-sql

From Worik
Subject Re: How to check postgres running or not ?
Date
Msg-id 414E25B3.9070309@noggon.com
Whole thread Raw
In response to Re: How to check postgres running or not ?  (Gaetano Mendola <mendola@bigfoot.com>)
Responses Re: How to check postgres running or not ?  (Gaetano Mendola <mendola@bigfoot.com>)
List 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 by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: How to check postgres running or not ?
Next
From: Greg Stark
Date:
Subject: Re: ORDER BY and NULLs