>Number:         2315
>Category:       general
>Synopsis:       Test for pid file is incorrect, causes grep error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri May 29 04:10:07 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3b7
>Environment:
SunOS 5.7
>Description:
This:
    # check for pidfile
    if [ -f $PIDFILE ] ; then

Should be:
    # check for pidfile
    if [ -s $PIDFILE ] ; then

in apachectl.  A zero-length placeholder file will cause grep errors
the first time apachctl is run to start the server (not enough arguments
to grep).



>How-To-Repeat:
% > ${PIDFILE}
% apachectl start
>Fix:
See Description.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to