Received: (qmail 6834 invoked by uid 2012); 26 May 1998 15:33:53 -0000 Message-Id: <19980526153353.6833.qmail@hyperreal.org> Date: 26 May 1998 15:33:53 -0000 From: Dirk Niemeyer Reply-To: dirk.niemeyer@airbus.dasa.de To: apbugs@hyperreal.org Subject: apachectl stop does not stop the httpd because ps -p does not work X-Send-Pr-Version: 3.2 >Number: 2285 >Category: os-sunos >Synopsis: apachectl stop does not stop the httpd because ps -p does not work >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: support >Submitter-Id: apache >Arrival-Date: Tue May 26 08:40:00 PDT 1998 >Last-Modified: Wed Jul 1 00:14:15 PDT 1998 >Originator: dirk.niemeyer@airbus.dasa.de >Organization: >Release: 1.3b7 >Environment: SunOS 4.1.4 2 sun4m >Description: 'apachectl stop' does not find the process identified in the httpd.run file because 'ps -p' does not work on SunOS 4.1.4: > ps -p > ps: p: unknown option > ps: usage: ps [-acCegjklnrStuvwxU] [num] [kernel_name] [c_dump_file] [swap_file] >How-To-Repeat: >Fix: replace the line PS=`ps -p $PID 2>/dev/null | tail -1 | grep $PID` by the lines OS=`uname -sr` if [ "$OS" = "SunOS 4.1.4" ]; then PS=`ps $PID 2>/dev/null | tail -1 | grep $PID` else PS=`ps -p $PID 2>/dev/null | tail -1 | grep $PID` fi Then it will work for SunOS 4.1.4 also; i do not know how to just identifying SunOS 4 with sh (and how many non-4.1.4 may be still out there) >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Wed Jul 1 00:14:15 PDT 1998 State-Changed-Why: A fix has been committed and will be available in 1.3.1. We decided to just not use ps at all to avoid all the hassles, and to do what we have to a different way. Thanks for the report. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]