Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 86142

Summary: status() in /etc/rc.d/init.d/functions does not distinguish daemons properly
Product: [Retired] Red Hat Linux Reporter: Boris Folgmann <boris>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-04 01:28:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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
daemon_path/daemon_file_name


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

How reproducible:
Always

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.