[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-bugdb
Subject:    general/2315: Test for pid file is incorrect, causes grep error
From:       Greg Onufer <greg2 () cheers ! Bungi ! COM>
Date:       1998-05-29 11:09:40
[Download RAW message or body]


>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:     greg2@cheers.Bungi.COM
>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 <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic