Re: [Exim] Exiwhat errors with runq

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: John Horne
CC: Exim Users List
Betreff: Re: [Exim] Exiwhat errors with runq
On Wed, 19 Jul 2000, John Horne wrote:

> If I do the same as root then I get no errors, but do get the entry:
>
> 7413 3.16 running queue: waiting for children of 7431
>
> which is what I want. However, I do not want to run exiwhat from root.


The point is, Exim processes are run under all kinds of different uids,
so root is the only way to send all of them the signal that makes them
spit out what they are doing.

Before somebody asks "Why not put stuff in the arguments so that the ps
command shows it" the answer is "That does not work on all operating
systems".

> Anyone any thoughts about this - I still want to be able to tell if a queue
> runner is running, but not by having to use root.


One way is to grep the log backwards. If you hit "queue run started"
before you hit "queue run ended", then a queue runner is running. Well,
not quite; there may be several running at once. Strictly, you have to
to back and tie up the pids, I suppose. A bit messy, especially when the
log rotates.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.