httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47778] New: wrong exit value on graceful restart
Date Thu, 03 Sep 2009 07:43:01 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47778

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: harald.dunkel@aixigo.de


--- Comment #0 from harald.dunkel@aixigo.de 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
    fi

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:
SSLSessionCache]
[Thu Sep 03 09:12:26 2009] [warn] pid file /tomcat/httpd/logs/httpd.pid
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
environment.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message