Bug 1095 - Minor bug in function 'status' at /etc/rc.d/init.d/funtions
Minor bug in function 'status' at /etc/rc.d/init.d/funtions
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
5.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-02-10 06:06 EST by ralcan
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

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


Attachments (Terms of Use)

  None (edit)
Description ralcan 1999-02-10 06:06:58 EST
When some of the programs at /etc/rc.d/init.d/ are called
with the 'status' parameter, sometimes they report an output
like this:
$ /etc/rc.d/init.d/sendmail status
sendmail (pid 1378
2011
2012) is running...
This is due to a bug in the 'status' function. The next
patch I submit removes this minor bug. BTW I hope you
release a new version of Red Hat Linux soon (I too use
2.2.1).
130c130
<                 pid=`ps auxww | grep '[^[]'$1 | awk
'{print $2}'`
---
>                 pid=`ps auxww | grep '[ ]'$1 | awk '{print
$2}'`
132c132,134
<                         echo "$1 (pid $pid) is running..."
---
>                         echo -n "$1 (pid "
>                       echo -n $pid
>                       echo    ") is running..."
Comment 1 Bill Nottingham 1999-02-10 10:20:59 EST
this is fixed in a later initscripts package.

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