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

Mailing List Archive: Apache: Users

How to stop httpd in single process mode on Linux

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


800360 at gmail

May 4, 2008, 10:56 PM

Post #1 of 3 (115 views)
Permalink
How to stop httpd in single process mode on Linux

Hi,

On Fedora 8, I start apache in single process mode using this command:
httpd -X
And it won't stop!

Sending it SIGKILL will kill the process. But it does not respond to
SIGTERM or SIGINT.

Is there a way to shut it down but not to kill it?

I start httpd in this way because I'm debugging it, I don't want to
use the control scripts.

Thanks!

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


joshua at slive

May 5, 2008, 5:47 AM

Post #2 of 3 (106 views)
Permalink
Re: How to stop httpd in single process mode on Linux [In reply to]

On Mon, May 5, 2008 at 1:56 AM, zengwm <800360[at]gmail.com> wrote:
> Hi,
>
> On Fedora 8, I start apache in single process mode using this command:
> httpd -X
> And it won't stop!
>
> Sending it SIGKILL will kill the process. But it does not respond to
> SIGTERM or SIGINT.
>
> Is there a way to shut it down but not to kill it?
>
> I start httpd in this way because I'm debugging it, I don't want to
> use the control scripts.

I haven't tried this lately, but since apache doesn't detach in -X
mode, ctrl-c from the terminal will probably do it.

Joshua.

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


800360 at gmail

May 5, 2008, 6:23 PM

Post #3 of 3 (102 views)
Permalink
Re: How to stop httpd in single process mode on Linux [In reply to]

Yes, on Windows CTRL+C will stop it, but on Linux it would not.
Because the implementations of the process models are different.

2008/5/5, Joshua Slive <joshua[at]slive.ca>:
> On Mon, May 5, 2008 at 1:56 AM, zengwm <800360[at]gmail.com> wrote:
> > Hi,
> >
> > On Fedora 8, I start apache in single process mode using this command:
> > httpd -X
> > And it won't stop!
> >
> > Sending it SIGKILL will kill the process. But it does not respond to
> > SIGTERM or SIGINT.
> >
> > Is there a way to shut it down but not to kill it?
> >
> > I start httpd in this way because I'm debugging it, I don't want to
> > use the control scripts.
>
> I haven't tried this lately, but since apache doesn't detach in -X
> mode, ctrl-c from the terminal will probably do it.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>


--



曾伟明

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


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