You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sam Carleton <sc...@miltonstreet.com> on 2007/02/01 04:31:37 UTC

[users@httpd] Apache/2.2.3 on windows not shutting down

My windows GUI app is starting apache and needs to shut it down before
it exits.  I have tried following the manual:

------------------------
You can tell a running Apache to stop by opening another console
window and entering:

httpd -k shutdown

This should be preferred over pressing Control-C because this lets
Apache end any current operations and clean up gracefully.
------------------------

But it does not work.  Does anyone know why?  I know it is better to
run it as a service, but that is not an option for my usage of apache.
 I am NOT using the standard httpd.conf, I have also tried sending
this:

httpd -k shutdown -f <path to conf file>

And that does not work either.  Any thoughts?

Sam

---------------------------------------------------------------------
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


Re: [users@httpd] Apache/2.2.3 on windows not shutting down

Posted by Octavian Rasnita <or...@gmail.com>.
I have also encountered this problem, but when running Apache as a normal
installed web server (as a service).

I have tried:

net stop apache2.2

It tried stopping the service for some time, but without success. I have
also tried

httpd -k stop

But it doesn't want to shut it down.

I have also tried stopping the process from Windows processes list, but it
shown  that it is in the process of stopping...

So I needed to reboot.



Octavian

----- Original Message ----- 
From: "Sam Carleton" <sc...@miltonstreet.com>
To: <us...@httpd.apache.org>
Sent: Thursday, February 01, 2007 5:31 AM
Subject: [users@httpd] Apache/2.2.3 on windows not shutting down


> My windows GUI app is starting apache and needs to shut it down before
> it exits.  I have tried following the manual:
>
> ------------------------
> You can tell a running Apache to stop by opening another console
> window and entering:
>
> httpd -k shutdown
>
> This should be preferred over pressing Control-C because this lets
> Apache end any current operations and clean up gracefully.
> ------------------------
>
> But it does not work.  Does anyone know why?  I know it is better to
> run it as a service, but that is not an option for my usage of apache.
>  I am NOT using the standard httpd.conf, I have also tried sending
> this:
>
> httpd -k shutdown -f <path to conf file>
>
> And that does not work either.  Any thoughts?
>
> Sam
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] Apache/2.2.3 on windows not shutting down

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Try adding the trailing slash for TortoiseSVN?  I'm not familiar with it
myself as I use command-line svn client.

Sam Carleton wrote:
> On 2/1/07, William A. Rowe, Jr. <wr...@rowe-clan.net> wrote:
> 
>> As nobody uses httpd as an application except in brief testing, it has
>> relatively little testing and review.  You can always look at the test
>> framework available via svn from;
>>
>> http://svn.apache.org/repos/asf/httpd/test/trunk/perl-framework/
>>
>> Patches are welcome, of course.
> 
> Ok, ok, ok, I will look into it, it would be nice to have fixed and I
> am finally doing something that should generate some money so the
> least I can do is give back a little;)
> 
> So, I am new to subversion, just got my subversion server setup last
> week and have been using it at my new job for about three weeks now.
> I tried to get the link above with TortoiseSVN, but it isn't
> happening.  When I give the repository browser a URL, like
> http://svn.apache.org/repos/asf/httpd/httpd/trunk I can see it but not
> browse any of it.  I get this error:
> 
> Error * REPORT request failed on
> 'http://svn.apache.org/repos/asf/httpd/httpd/trunk' REPORT of
> 'http://svn.apache.org/repos/asf/httpd/httpd/trunk': 400 Bad Request
> (http://svn.apache.org)
> 
> I think I am missing something.  Anyone able to point me to the
> correct documentation?
> 
> Sam
> 
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] Apache/2.2.3 on windows not shutting down

Posted by Sam Carleton <sc...@miltonstreet.com>.
On 2/1/07, William A. Rowe, Jr. <wr...@rowe-clan.net> wrote:

> As nobody uses httpd as an application except in brief testing, it has
> relatively little testing and review.  You can always look at the test
> framework available via svn from;
>
> http://svn.apache.org/repos/asf/httpd/test/trunk/perl-framework/
>
> Patches are welcome, of course.

Ok, ok, ok, I will look into it, it would be nice to have fixed and I
am finally doing something that should generate some money so the
least I can do is give back a little;)

So, I am new to subversion, just got my subversion server setup last
week and have been using it at my new job for about three weeks now.
I tried to get the link above with TortoiseSVN, but it isn't
happening.  When I give the repository browser a URL, like
http://svn.apache.org/repos/asf/httpd/httpd/trunk I can see it but not
browse any of it.  I get this error:

Error * REPORT request failed on
'http://svn.apache.org/repos/asf/httpd/httpd/trunk' REPORT of
'http://svn.apache.org/repos/asf/httpd/httpd/trunk': 400 Bad Request
(http://svn.apache.org)

I think I am missing something.  Anyone able to point me to the
correct documentation?

Sam

---------------------------------------------------------------------
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


Re: [users@httpd] Apache/2.2.3 on windows not shutting down

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Sam Carleton wrote:
> 
> httpd -k shutdown
> 
> This should be preferred over pressing Control-C because this lets
> Apache end any current operations and clean up gracefully.
> ------------------------
> 
> But it does not work.  Does anyone know why?  I know it is better to
> run it as a service, but that is not an option for my usage of apache.

As nobody uses httpd as an application except in brief testing, it has
relatively little testing and review.  You can always look at the test
framework available via svn from;

http://svn.apache.org/repos/asf/httpd/test/trunk/perl-framework/

for an example of how the framework invokes and shuts down httpd as an
application for the purposes of testing.

The ctrl+c signal *is* captured and handled, so there is no issue with using
that approach.  Of course, killing the process (TerminateProcess) has the side
effects described above.

Patches are welcome, of course.

---------------------------------------------------------------------
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