Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 14:33:54 +0100
From:      Ruben de Groot <fbsd-q@bzerk.org>
To:        Josh Brooks <user@mail.econolodgetulsa.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: differentiating apache children from parents ?
Message-ID:  <20030124133354.GA59812@ei.bzerk.org>
In-Reply-To: <20030124052109.R64423-100000@mail.econolodgetulsa.com>
References:  <20030124052109.R64423-100000@mail.econolodgetulsa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 24, 2003 at 05:22:00AM -0800, Josh Brooks typed:
> 
> Hello,
> 
> Is there any way to tell, simply from /proc info and/or ps output if a
> certain httpd PID is a child or the parent ?

Yes, use "ps xalw | grep httpd". In the third column you see the processes' 
PPID (Parent Proces ID). All except one will have the same PPID. The one
proces with PPID=1 is the parent, the rest are its children.

> If yes, is this method applicable on any OS (linux) ?

AFAIK, on any Unix-like OS. Although the format of the ps output may 
differ.

> 
> thanks.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030124133354.GA59812>