Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 16:29:51 +0300 (MSK)
From:      Varshavchick Alexander <alex@metrocom.ru>
To:        Josh Brooks <user@mail.econolodgetulsa.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: differentiating apache children from parents ?
Message-ID:  <Pine.GSO.4.33.0301241623320.28852-100000@apache.metrocom.ru>
In-Reply-To: <20030124052109.R64423-100000@mail.econolodgetulsa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
you can look at the parent pid of the process in question wether it is 1
or not:

ps xa -oppid -p _PID_

But depending on what you're trying to do afterwards (for example kill the
process if you determine by some external script that there are too many
apaches running and you're not satisfied with the native apache process
maintanance mechanism), there can be better ways...

Regards

----
Alexander Varshavchick, Metrocom Joint Stock Company
Phone: (812)118-3322, 118-3115(fax)

On Fri, 24 Jan 2003, Josh Brooks wrote:

> Date: Fri, 24 Jan 2003 05:22:00 -0800 (PST)
> From: Josh Brooks <user@mail.econolodgetulsa.com>
> To: freebsd-questions@FreeBSD.ORG
> Subject: differentiating apache children from parents ?
>
>
> 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 ?
>
> If yes, is this method applicable on any OS (linux) ?
>
> 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?Pine.GSO.4.33.0301241623320.28852-100000>