osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62722] New: Apache hangs when restarting


https://bz.apache.org/bugzilla/show_bug.cgi?id=62722

            Bug ID: 62722
           Summary: Apache hangs when restarting
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: gilperon@xxxxxxxxx
  Target Milestone: ---

I have a clean install of CENTOS 7.1 and installed Apache in it. So I created a
script with only this code below (named "test.php") and I execute it calling
the script in my browser (like http://localhost/test.php):

<?php

set_time_limit(0); 

sleep(10000000);

?>

If I try to restart Apache with the command systemctl restart httpd.service my
SSH hangs for at least 2 or 3 minutes before actually restarting the server.
The problem, is that meanwhile, the entire server gets offline! The entire
server gets offline while apache is "trying" to restart.

So I ask you: how do I force a restart of apache without having to wait it?
Sometimes it's even faster restarting the entire server with shutdown -r now
since systemctl restart httpd.service takes so long.

I think this is a bug since Apache should not hang undefinately if the super
user wants it to restart right away!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx