RE: What is httpd -X?
Hi, Thanks for your reply. I tried this out but, still I am not able to kill both the httpd.exe through kill. Can you please tell me how to kill both the httpd.exe process by passing only the parent pid on Windows. Thanks and Regards, Ashwani Sharma Mob: 09916454843 Off: +91-80-26265053 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive Sent: Thursday, September 20, 2007 8:04 PM To: dev@httpd.apache.org Subject: Re: What is httpd -X? On 9/20/07, Ashwani Kumar Sharma [EMAIL PROTECTED] wrote: I want to start the httpd web server through my own application and then I would like to shut down the web server once I wish to bring my application down, normally or abnormally (in case). Will it be fine if I spawn the Apache web server by httpd -X option? Would it create some unforeseen prob in my application. All this I am doing so that I can kill the apache web server through kill(pid, sigkill) option. Killing two httpd processes after spawning two httpd processes is difficult. No, this is not the right solution. As has already been pointed out in this thread, -DNO_DETACH is available if you just don't want apache detaching. But even easier, you only have to kill one single process (the apache parent process written to the httpd.pid log file) and that process will take care of killing off all the rest. But you do it withh SIGTERM, not SIGKILL, to give the process a chance to do the cleanup. Joshua. DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. 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. 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. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
Re: What is httpd -X?
On 9/20/07, Ashwani Kumar Sharma [EMAIL PROTECTED] wrote: What is httpd –X See: http://httpd.apache.org/docs/2.2/programs/httpd.html Whether I can use this –X option for the deployment. The better question is: why would you want to? You mention nothing about what problem you are trying to solve, so there isn't much advice we can give you. But I can't imagine many problems where running a single-process, non-detached web server in production would be the right solution. Joshua.
Re: What is httpd -X?
Hello, * Joshua Slive [EMAIL PROTECTED] [20070920 15:12]: On 9/20/07, Ashwani Kumar Sharma [EMAIL PROTECTED] wrote: Whether I can use this –X option for the deployment. The better question is: why would you want to? You mention nothing about what problem you are trying to solve, so there isn't much advice we can give you. But I can't imagine many problems where running a single-process, non-detached web server in production would be the right solution. well, we had a special case where just about everything was handled by a custom (threaded) apache module .. one process was just fine, and not detaching allowed us to respawn directly via init ... we've moved from -X to -DNO_DETACH, thou, so we can do graceful restarts - those are completely disabled when -X is used, as this is mainly for debugging .. might be a reason why it's not really in the helppage. Br, Andreas -- flatline IT services - Andreas Kotes - Tailored solutions for your IT needs
RE: What is httpd -X?
Hi All, Please find my answer inline with this mail. Thanks and Regards, Ashwani Sharma Mob: 09916454843 Off: +91-80-26265053 -Original Message- From: Mario Brandt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 20, 2007 7:11 PM To: 'dev@httpd.apache.org' Subject: AW: What is httpd -X? I'm wondering a bit why the -X argument is in the docs, but not listet using httpd -h I want to start the httpd web server through my own application and then I would like to shut down the web server once I wish to bring my application down, normally or abnormally (in case). Will it be fine if I spawn the Apache web server by httpd -X option? Would it create some unforeseen prob in my application. All this I am doing so that I can kill the apache web server through kill(pid, sigkill) option. Killing two httpd processes after spawning two httpd processes is difficult. regrads Mario -Ursprüngliche Nachricht- Von: Joshua Slive [mailto:[EMAIL PROTECTED] See: http://httpd.apache.org/docs/2.2/programs/httpd.html DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. 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. 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. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
Re: What is httpd -X?
On 9/20/07, Ashwani Kumar Sharma [EMAIL PROTECTED] wrote: I want to start the httpd web server through my own application and then I would like to shut down the web server once I wish to bring my application down, normally or abnormally (in case). Will it be fine if I spawn the Apache web server by httpd -X option? Would it create some unforeseen prob in my application. All this I am doing so that I can kill the apache web server through kill(pid, sigkill) option. Killing two httpd processes after spawning two httpd processes is difficult. No, this is not the right solution. As has already been pointed out in this thread, -DNO_DETACH is available if you just don't want apache detaching. But even easier, you only have to kill one single process (the apache parent process written to the httpd.pid log file) and that process will take care of killing off all the rest. But you do it withh SIGTERM, not SIGKILL, to give the process a chance to do the cleanup. Joshua.