I suggest you launch apache with the config file as a parameter
and retrieve the filename it via ps afterwards.

Alternatively you can also start out with a clear architecture and put the
config files in a predefined location, defined by the URL.
Like /etc/apache/.../httpd.conf_www.example.com 

Then you run over all these files, extract the PIDfile, extract the PID
from the file and see wether there are running processes at this PID.

Be really careful when updating running apaches automatically.
But I guess you know what you are doing.

regs,

Christian


-----Ursprüngliche Nachricht-----
Von: Vinay Purohit [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 8. April 2008 09:02
An: users@httpd.apache.org
Betreff: RE: [EMAIL PROTECTED] How to detect multiple instance of apache 


Thanks !! 
Actually , I would like to know the location of their httpd.conf respectively 
as my application want to add certain entries in the httpd.conf

----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 12:26 PM
To: users@httpd.apache.org
Subject: AW: [EMAIL PROTECTED] How to detect multiple instance of apache 

ps auwwx | grep -v grep | grep root | grep apache  (?)
 

-----Ursprüngliche Nachricht-----
Von: Vinay Purohit [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 8. April 2008 08:50
An: users@httpd.apache.org
Betreff: [EMAIL PROTECTED] How to detect multiple instance of apache 


 Hi,

I have installed apache 2.2.8 and created multiple instance of it (using IP 
based multiple daemon). I would like to write an application 

Which required to know "how many instance of apache server running on my 
machine?" 

Please let me know hot to find out if multiple instance of apache is running on 
the machine? If Yes what are those instances ?

\Vinay

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to