Red Hat Bugzilla – Bug 246829
psacct initscript is always returning error code 0
Last modified: 2007-11-30 17:12:09 EST
Description of problem:
The psacct initscript is returning error code 0 no matter what.
Even when is the status, while psacct is not running is returning 0.
In additional the initscript don't check error code from /sbin/accton.
Version-Release number of selected component (if applicable):
and then issue the status command:
/etc/init.d/psacct status >/dev/null 2>&1 ; echo $?
As psacct is stopped this should return 3, however returns 0
A patch to fix these problems is attached.
Created attachment 158578 [details]
Patch to fix error codes from initscript
*** This bug has been marked as a duplicate of 247034 ***