Re: pidof not working for postgresql-8.3 ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ennio-Sr <nasr(dot)laili(at)tin(dot)it>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: pidof not working for postgresql-8.3 ?
Date: 2008-02-29 04:24:28
Message-ID: 21786.1204259068@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Ennio-Sr <nasr(dot)laili(at)tin(dot)it> writes:
> 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
> [nihil]

> Is this a normal behaviour for the new pg_8.3?

I am not familiar with pidof (doesn't exist on any of my boxen)
but maybe it is looking at real executable names rather than
symlinks? Try looking for "postgres" instead of "postmaster".

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2008-02-29 04:55:42 Re: Postgres 8.3 - C function taking and returning arrays
Previous Message Andrej Ricnik-Bay 2008-02-28 21:30:40 Re: Monitoring new records