Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev
Want to kill Apache process when its parent process gets killed.
 

Index | Next | Previous | View Flat


Ashwani_Sharma at mindtree

Sep 10, 2007, 7:44 AM


Views: 413
Permalink
Want to kill Apache process when its parent process gets killed.

Hi,



In my application I am spawning httpd.exe from the parent process.



My requirement is that:



1. Whenever the parent process is getting killed, it should also kill
the Apache web server and then go down.

This I am able to do successfully.



2. In the Abnormal termination of the parent process. The Apache should
keep looking for its parent process. If the parent process is not present

then the Apache web server should also kill itself.



How can I implement the 2nd point?



Please guide.







Thanks and Regards,

Ashwani Sharma

Mob: 09916454843

Off: +91-80-26265053





DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.

Subject User Time
Want to kill Apache process when its parent process gets killed. Ashwani_Sharma at mindtree Sep 10, 2007, 7:44 AM
    Re: Want to kill Apache process when its parent process gets killed. trawick at gmail Sep 11, 2007, 3:44 AM
    RE: Want to kill Apache process when its parent process gets killed. Ashwani_Sharma at mindtree Sep 11, 2007, 4:10 AM
    Re: Want to kill Apache process when its parent process gets killed. trawick at gmail Sep 11, 2007, 11:19 AM
    Re: Want to kill Apache process when its parent process gets killed. wrowe at rowe-clan Sep 11, 2007, 2:17 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.