- To: Michael Lake <mikel@xxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] bash question - how to tell if apache has stopped?
- From: Rene Cunningham <rene@xxxxxxxxxxxxx>
- Date: Thu, 12 Jan 2006 11:52:05 +1100
- Cc: slug@xxxxxxxxxxx
- User-agent: Mutt/1.5.9i
On Mon, Jan 09, 2006 at 10:30:28AM +1100, Michael Lake wrote:
> Also the script will eventually need to be able to test for either the
> first apache-perl or the second one.
> At present the above script cannot descriminate between the two.
> i.e.
> # www-data 28319 28312 0 13:02 pts/3 00:00:00 /usr/sbin/apache-perl
> # root 28584 1 6 13:03 pts/3 00:00:00 /usr/sbin/apache-perl -f
> /etc/apache-perl/httpd2.conf
>
> What do folks use to determine if a process is running?
Hi,
pidof(8).
--
Rene Cunningham
DCLabs Pty Ltd
http://www.dclabs.com.au