Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 86142 - status() in /etc/rc.d/init.d/functions does not distinguish daemons properly
Summary: status() in /etc/rc.d/init.d/functions does not distinguish daemons properly
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2003-03-14 20:34 UTC by Boris Folgmann
Modified: 2014-03-17 02:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-09-04 01:28:19 UTC

Attachments (Terms of Use)

Description Boris Folgmann 2003-03-14 20:34:14 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2; MultiZilla v1.1.32
final) Gecko/20021207

Description of problem:
status seems to call pidof daemon_file_name instead of pidof

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. /usr/cyrus/bin/master is running 
2. /usr/libexec/postfix/master is NOT running
3. Try /etc/init.d/postfix status

Actual Results:  postfix is reported as running!

Expected Results:  postfix should be reported as not running, because
/usr/cyrus/bin/master is not /usr/libexec/postfix/master

Additional info:

I suggest to save the pid to a file when the daemon is started and then do
something like ps|grep pid to check if the exact same instance is still running.

Comment 1 Bill Nottingham 2003-09-04 01:28:19 UTC
I believe this is fixed in current initscripts, such as those shipped with Red
Hat Linux 9.

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