Bug 246829

Summary: psacct initscript is always returning error code 0
Product: [Fedora] Fedora Reporter: Terje Rosten <terjeros>
Component: psacctAssignee: Ivana Varekova <varekova>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7   
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: 2007-07-12 12:29:17 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:
Attachments:
Description Flags
Patch to fix error codes from initscript none

Description Terje Rosten 2007-07-05 10:39:53 UTC
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):

psacct-6.3.2-44.fc7

How reproducible:

Stop psacct:

/etc/init.d/psacct stop

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.

Comment 1 Terje Rosten 2007-07-05 10:39:53 UTC
Created attachment 158578 [details]
Patch to fix error codes from initscript

Comment 2 Ivana Varekova 2007-07-12 12:29:17 UTC

*** This bug has been marked as a duplicate of 247034 ***