Received: (qmail 69375 invoked by uid 501); 28 Dec 2001 01:12:45 -0000 Message-Id: <20011228011245.69374.qmail@apache.org> Date: 28 Dec 2001 01:12:45 -0000 From: John Wehle Reply-To: john@feith.com To: submit@bugz.apache.org Subject: apachectl stop followed by apachectl startssl fails X-Send-Pr-Version: 3.110 >Number: 9284 >Category: general >Synopsis: apachectl stop followed by apachectl startssl fails >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Dec 27 17:20:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: john@feith.com >Release: 1.3.22 >Organization: apache >Environment: Sun Solaris 7 x86 106542-17 gcc 2.95.3 >Description: 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. >How-To-Repeat: Issue: apachectl stop apachectl startssl on a fast machine. >Fix: *** 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 ---- continue fi if kill $PID ; then + while kill -0 $PID 2>/dev/null + do + sleep 3 + done echo "$0 $ARG: httpd stopped" else echo "$0 $ARG: httpd could not be stopped" >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]