Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 158578 Details for
Bug 246829
psacct initscript is always returning error code 0
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Patch to fix error codes from initscript
psacct.init.patch (text/plain), 997 bytes, created by
Terje Rosten
on 2007-07-05 10:39:53 UTC
(
hide
)
Description:
Patch to fix error codes from initscript
Filename:
MIME Type:
Creator:
Terje Rosten
Created:
2007-07-05 10:39:53 UTC
Size:
997 bytes
patch
obsolete
>--- psacct.old 2007-07-05 10:54:02.000000000 +0200 >+++ psacct 2007-07-05 12:39:10.000000000 +0200 >@@ -15,27 +15,35 @@ > > start() { > [ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE >- action $"Starting process accounting: " /sbin/accton $ACCTFILE >- touch /var/lock/subsys/psacct >+ action $"Starting process accounting: " /sbin/accton $ACCTFILE >+ RETVAL=$? >+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/psacct >+ return $RETVAL > } > > stop() { > action $"Shutting down process accounting: " /sbin/accton >- rm -f /var/lock/subsys/psacct >+ RETVAL=$? >+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/psacct >+ return $RETVAL > } > # See how we were called. > case "$1" in > start) > start >+ RETVAL=$? > ;; > stop) > stop >+ RETVAL=$? > ;; > status) > if [ -e /var/lock/subsys/psacct ]; then > echo $"Process accounting is enabled." >+ RETVAL=0 > else > echo $"Process accounting is disabled." >+ RETVAL=3 > fi > ;; > restart|reload) >@@ -49,5 +57,5 @@ > exit 1 > esac > >-exit 0 >+exit $RETVAL >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 246829
: 158578