Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 246829 - psacct initscript is always returning error code 0
psacct initscript is always returning error code 0
Status: CLOSED DUPLICATE of bug 247034
Product: Fedora
Classification: Fedora
Component: psacct (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Ivana Varekova
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-07-05 06:39 EDT by Terje Rosten
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-07-12 08:29:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to fix error codes from initscript (997 bytes, text/plain)
2007-07-05 06:39 EDT, Terje Rosten
no flags Details

  None (edit)
Description Terje Rosten 2007-07-05 06:39:53 EDT
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):


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 06:39:53 EDT
Created attachment 158578 [details]
Patch to fix error codes from initscript
Comment 2 Ivana Varekova 2007-07-12 08:29:17 EDT

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

Note You need to log in before you can comment on or make changes to this bug.