The following reply was made to PR general/2878; it has been noted by GNATS.
From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Subject: Re: general/2878: apachectl sometimes falsely reports that the server is running when trying to start Date: Wed, 19 Aug 1998 10:16:41 -0700 > Thank you very much for your problem report. > It has the internal identification `general/2878'. > The individual assigned to look at your > report is: apache. > > >Category: general > >Responsible: apache > >Synopsis: apachectl sometimes falsely reports that the server is running > when trying to start > >Arrival-Date: Wed Aug 19 10:00:01 PDT 1998 The problem with grepping for the PID is that there could be another process with that PID included as a substring of its own PID. While this shouldn't happen very often, it obviously does occur. The suggested change of 'grep $PID' to 'grep "$PID.*httpd"' makes a lot of sense. Going one step further 'grep "$PID .*httpd"' makes even more sense. Another suggestion is to remove the PID file when the server is successfully stopped. And by successfully stoped, I mean check for the process exsitance and for any subprocesses after the kill has completed, even if it completes successfully. George Westlund
