From: Gaetano Mendola <mendola@bigfoot.com>
To: Worik <worik@noggon.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to check postgres running or not ?
Date: Mon, 20 Sep 2004 12:05:55 +0200
Message-ID: <414EAB83.3060600@bigfoot.com> (raw)
In-Reply-To: <414E25B3.9070309@noggon.com>
References: <414A7395.8070503@vertex.co.in>
<414CE76E.2050405@noggon.com>
<414D7533.10708@3times25.net>
<19430.1095611100@sss.pgh.pa.us>
<414DF2D5.5040509@bigfoot.com>
<414E25B3.9070309@noggon.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Worik wrote:
|
|
| [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(?)
It only depends on your distribution, in your case:
ps aux | grep /usr/lib/postgresql/bin/postmaster | grep -v grep
consider also the if you run different postmaster version in different
location this is the only way I believe
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBTquC7UpzwH2SGd4RAiouAKCpvuLSspsTVXCjSLgDZ2ZKQ3gfywCg7rzl
gXkPlq9UanBNjIWpBvPXNwo=
=ZNAY
-----END PGP SIGNATURE-----
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mendola@bigfoot.com, worik@noggon.com, tgl@sss.pgh.pa.us
Subject: Re: How to check postgres running or not ?
In-Reply-To: <414EAB83.3060600@bigfoot.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox