Bug 1095 - Minor bug in function 'status' at /etc/rc.d/init.d/funtions
Summary: Minor bug in function 'status' at /etc/rc.d/init.d/funtions
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 5.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-02-10 11:06 UTC by ralcan
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-02-10 15:20:27 UTC
Embargoed:


Attachments (Terms of Use)

Description ralcan 1999-02-10 11:06:58 UTC
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 15:20:59 UTC
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.