www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wehle <j...@feith.com>
Subject general/9284: apachectl stop followed by apachectl startssl fails
Date Fri, 28 Dec 2001 01:12:45 GMT

>Number:         9284
>Category:       general
>Synopsis:       apachectl stop followed by apachectl startssl fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Dec 27 17:20:01 PST 2001
>Originator:     john@feith.com
>Release:        1.3.22
Sun Solaris 7 x86 106542-17
gcc 2.95.3
Currently issuing:

  apachectl stop
  apachectl startssl

can produce the following output:

  apachectl stop: httpd stopped
  apachectl startssl: httpd (pid 3142) already running

since apachectl doesn't wait for httpd to actually terminate
(it just sends the signal).  On a fast machine the startssl
may happen before httpd terminates.

  apachectl stop
  apachectl startssl

on a fast machine.
*** src/support/apachectl.ORIGINAL      Wed Feb 14 00:15:09 2001
--- src/support/apachectl       Wed Feb 21 00:07:59 2001
*************** do
*** 93,98 ****
--- 93,102 ----
        if kill $PID ; then
+           while kill -0 $PID 2>/dev/null
+             do
+               sleep 3
+             done
            echo "$0 $ARG: httpd stopped"
            echo "$0 $ARG: httpd could not be stopped"
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message