Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group