Received: (qmail 11067 invoked by uid 500); 9 Mar 2001 01:44:07 -0000 Message-Id: <200103090143.UAA21875@jwlab.FEITH.COM> Date: Thu, 8 Mar 2001 20:43:45 -0500 (EST) From: John Wehle To: apbugs@apache.org Subject: Patch to fix Apache 1.3.17 apachectl stop handling >Number: 7379 >Category: pending >Synopsis: Patch to fix Apache 1.3.17 apachectl stop handling >Confidential: yes >Severity: serious >Priority: medium >Responsible: gnats-admin >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Thu Mar 08 17:50:00 PST 2001 >Closed-Date: Sat Dec 08 20:38:42 PST 2001 >Last-Modified: Sat Dec 08 20:38:42 PST 2001 >Originator: >Release: >Organization: >Environment: >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 terminated. ChangeLog: Thu Mar 8 20:41:45 EST 2001 John Wehle (john@feith.com) * apachectl (stop): Wait for httpd to actually stop. Enjoy! -- John Wehle ------------------8<------------------------8<------------------------ *** 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" ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: marc State-Changed-When: Sat Dec 8 20:38:42 PST 2001 State-Changed-Why: misfiled PR created by email sent to apbugs. To submit an Apache bug report, please visit http://bugs.apache.org/ >Unformatted: