bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipeline outlives TERMed bash


From: Denis Vlasenko
Subject: Re: pipeline outlives TERMed bash
Date: Thu, 15 Sep 2005 11:28:01 +0300
User-agent: KMail/1.8.2

On Thursday 15 September 2005 00:51, Paul Jarc wrote:
> Denis Vlasenko <vda@ilport.com.ua> wrote:
> > The problem is that svc -d (or manual kill -TERM)
> > kills bash but nmeter and logger continue to run,
> > until I kill nmeter manually.
> 
> It's best not to put a long-running pipeline in a daemontools run
> script, for just this reason (among others).  Instead, move logger
> into a separate /service/foo/log/run script.
> <URL:http://cr.yp.to/daemontools/faq/create.html#runlog>

Done.

But in cases where I can't avoid using a pipeline:
I find it unconvenient that there is no sane way to know PIDs
of individual pipeline members. Or is there?

$! returns PID of _last_ process in backgrounded pipeline,
but I want to know PID of first one.
--
vda




reply via email to

[Prev in Thread] Current Thread [Next in Thread]