>Number: 2414
>Category: os-sunos
>Synopsis: apachectl can't detect if apache is running
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Jun 11 08:20:01 PDT 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: apache_1.3.0
>Environment:
SunOS lambda 4.1.3_U1 1 sun4m
>Description:
apachectl can't detect if apache is running or not, so it fails to restart or
stop it.
>How-To-Repeat:
>Fix:
The problem is that under 4.1.3_U1 the command 'ps' does not require
the switch -p; changing the line
PS=`ps -p $PID 2>/dev/null | tail -1 | grep $PID`
to
PS=`ps $PID 2>/dev/null | tail -1 | grep $PID`
in apachectl fixed the problem.
>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. ]