httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47778] New: wrong exit value on graceful restart
Date Thu, 03 Sep 2009 07:43:01 GMT

           Summary: wrong exit value on graceful restart
           Product: Apache httpd-2
           Version: 2.2.13
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core

--- Comment #0 from 2009-09-03 00:42:56 PDT ---
I am running httpd on a generated httpd.conf file. If the configuration is
changed while httpd is running, and then loaded using

    if httpd -f /my/httpd.conf -t; then
        httpd -f /my/httpd.conf -k graceful || exit_with_error

then the exit value of the graceful restart is 0, even though error_log says

[Thu Sep 03 09:12:26 2009] [warn] Init: Session Cache is not configured [hint:
[Thu Sep 03 09:12:26 2009] [warn] pid file /tomcat/httpd/logs/
overwritten -- Unclean shutdown of previous Apache run?
[Thu Sep 03 09:12:26 2009] [notice] Apache/2.2.13 (Unix) mod_ssl/2.2.13
OpenSSL/0.9.8k configured -- resuming normal operations
[Thu Sep 03 09:12:43 2009] [notice] Graceful restart requested, doing restart
(98)Address already in use: make_sock: could not bind to address xx.xx.xx.xx:80
no listening sockets available, shutting down
Unable to open logs

The suggested workaround to check the semantics ("start httpd as non-root")
doesn't work in scripts, because this _always_ fails either due to bind, or due
to the attempted access to reserved port 80/tcp, or it succeeds and keeps an
unwanted httpd running with the wrong uid.

I don't expect any miracles, but the exit value of "httpd -k graceful" _should_
show whether an httpd with the new configuration is running. Reliability is
highly important for us. Silently dying Apaches is a _huge_ problem in our

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message