Red Hat Bugzilla – Bug 314
status function returns erroneous results
Last modified: 2014-03-16 22:08:39 EDT
the status() function in /etc/rc.d/init.d/functions
returns consistently erroneous results -- it always
indicates that the process in question is running.
This is due to a bug in the function - lines 129 through
134 duplicate functionality already contained in
pidofproc() at line 113, only incorrectly. The grep
stage of the pipe picks up itself. grep is started before
ps finishes executing - so something is always found - the
grep command itself! Removing lines 129 through 134 causes
the behaviour to be correct again. This could cause problems, as "subsystem dead but locked" will NEVER be returned as a status now - some things depend on that return value for correct functioning. Typically, watchdog-type scripts break under this buggy behaviour.
just reviewed RedHat's "Priority" levels -- this should be a "Normal"
severity, not "High", bug. While it can cause disruption of service
(in the case where a watchdog relies upon the "status" function to
indicate a dead service), it does not cause system crashes or data
corruption. Sorry for the inconvenience.
Have you been able to get any past installs to work from the tree you
have set up from different workstations?
Disregard last comment by me. I entered it on the wrong bug report.
*** This bug has been marked as a duplicate of 281 ***