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
The same applies to freeipmi-bmc-watchdog script.
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
Patches were accepted and they should be part of upcoming freeipmi-0.8.1 release.