Re: pidof not working for postgresql-8.3 ?
On Tue, Feb 26, 2008 at 12:12:33AM +0100, Ennio-Sr wrote:
> Hi all!
> [Running Debian/Lenny powerpc on an iBook.]
> After upgrading from postgresql-8.1 to pg_8.3 I lost the capacity to
> connect to my databases.
> Besides that I just found out that 'pidof' doen't seem to work for the
> ordinary user, as far as postgresql is concerned, whereas it works
> regularly for other processes:
> user$ pidof /usr/sbin/apache
> 19095 19094 19093 19092 19091 19088
> user$ pidof /usr/lib/postgresql/8.3/bin.postmaster
Umm you have bin.postmaster (note the . not a /) here so I'd expect that
to be empty. Does it work if you use:
You might also want to look at pgrep.
Jan 19 - 24 2009 The Australian Linux Technical Conference!