httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <christian.fol...@post.ch>
Subject AW: [users@httpd] How to detect multiple instance of apache
Date Tue, 08 Apr 2008 07:19:59 GMT
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:Vinay.Purohit@trianz.com] 
Gesendet: Dienstag, 8. April 2008 09:02
An: users@httpd.apache.org
Betreff: RE: [users@httpd] 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: christian.folini@post.ch [mailto:christian.folini@post.ch]
Sent: Tuesday, April 08, 2008 12:26 PM
To: users@httpd.apache.org
Subject: AW: [users@httpd] How to detect multiple instance of apache 

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

-----Urspr√ľngliche Nachricht-----
Von: Vinay Purohit [mailto:Vinay.Purohit@trianz.com]
Gesendet: Dienstag, 8. April 2008 08:50
An: users@httpd.apache.org
Betreff: [users@httpd] 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message