Bug 523223

Summary: Initscript: ipmidetectd and bmc-watchdog dead not reported
Product: [Fedora] Fedora Reporter: Petr Šplíchal <psplicha>
Component: freeipmiAssignee: Jan Safranek <jsafrane>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: jsafrane, ohudlick, pknirsch
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: 2009-10-02 09:48:49 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:
Bug Depends On:    
Bug Blocks: 521669    

Description Petr Šplíchal 2009-09-14 14:15:46 UTC
Program is dead and /var/lock lock file exists is not reported:

# service freeipmi-ipmidetectd stop
Shutting down ipmidetectd:                                 [  OK  ]
# touch /var/lock/subsys/freeipmi-ipmidetectd 
# service freeipmi-ipmidetectd status

Actual results:
ipmidetectd is stopped
# echo $?
0

Expected results:
program is dead and /var/lock lock file exists
# echo $?
2

Comment 1 Petr Šplíchal 2009-09-14 14:23:00 UTC
The same applies to freeipmi-bmc-watchdog script.

Comment 2 Jan Safranek 2009-09-24 06:29:37 UTC
the status() function from /etc/init.d/functions is not happy with the lockfile and daemon binary having different name (freeipmi-ipmidetectd vs ipmidetectd) and reports misleading error codes.

I've sent few patches upstream to fix this (and other initscript problems):
http://lists.gnu.org/archive/html/freeipmi-devel/2009-09/msg00001.html

Comment 3 Jan Safranek 2009-10-02 09:48:49 UTC
Patches were accepted and they should be part of upcoming freeipmi-0.8.1 release.