Bug 1071 - /etc/rc.d/init.d/functions: Function 'status' sometimes thinks a process is running when it isn't, because it finds the 'grep' in the process table.
/etc/rc.d/init.d/functions: Function 'status' sometimes thinks a process is r...
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-02-08 08:43 EST by David Woodhouse
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-02-08 11:00:02 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Woodhouse 1999-02-08 08:43:34 EST
The 'status' function in /etc/rc.d/init.d/functions
sometimes finds its own 'grep' in the process table, and
reports that a process is running when it in fact isn't.

Changing line 130 from
pid=`ps auxww | grep '[^[]'$1 | awk '{print $2}'`


pid=`ps auxww | grep '[^[]'$1 | grep -v grep | awk '{print

serves as a temporary workaround here, but isn't ideal.
Comment 1 Bill Nottingham 1999-02-08 11:00:59 EST
this has been fixed in a more recent version of initscripts.

Note You need to log in before you can comment on or make changes to this bug.