Re: How to check postgres running or not ?

From: Worik <worik(at)noggon(dot)com>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-sql(at)postgresql(dot)org
Subject: Re: How to check postgres running or not ?
Date: 2004-09-20 00:34:59
Message-ID: 414E25B3.9070309@noggon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)stolberg:~$ ps aux | grep /usr/bin/postmaster | grep -v grep
worik(at)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(at)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
>
>
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Greg Stark 2004-09-20 00:51:35 Re: ORDER BY and NULLs
Previous Message Andrew Sullivan 2004-09-20 00:20:54 Re: How to check postgres running or not ?