Bug 974716
Summary: | psacct.service fails to start if accounting file already exists | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alexander Demenshin <aldem-fedora> |
Component: | psacct | Assignee: | Jaromír Cápík <jcapik> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | ignatenko, jcapik, ovasik |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | psacct-6.6.1-3.fc19 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-06-29 18:48:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alexander Demenshin
2013-06-14 23:52:22 UTC
Hello Alexander. You're right. I blindly copied the line from the psacct initscript. The condition is mandatory, since we don't want to overwrite possibly customized permissions each time the service is started. There are two solutions for the issue: 1.) add 'exit 0' at the end 2.) use the 'if then fi' style condition I'm gonna decide and fix that. Thanks for the report. Regards, Jaromir. The second option seems to be more correct. It returns failure when the creation or the permission change fails. In that case it's reasonable to return non-zero. The change is committed, pushed and the package is going to be rebuilt in few minutes. psacct-6.6.1-3.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/psacct-6.6.1-3.fc19 Package psacct-6.6.1-3.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing psacct-6.6.1-3.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-11051/psacct-6.6.1-3.fc19 then log in and leave karma (feedback). psacct-6.6.1-3.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |