Bug 802434 - /etc/logrotate.d/psacct does not seemed to be updated to use systemd
Summary: /etc/logrotate.d/psacct does not seemed to be updated to use systemd
Keywords:
Status: CLOSED DUPLICATE of bug 759321
Alias: None
Product: Fedora
Classification: Fedora
Component: psacct
Version: 16
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Jaromír Cápík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-12 14:33 UTC by Hui Chen
Modified: 2016-02-01 01:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-12 14:44:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hui Chen 2012-03-12 14:33:44 UTC
Description of problem:

/etc/logrotate.d/psacct uses "/etc/init.d/psacct status" to check if psacct is on after the log file is rotated. However, /etc/init.d/psacct does not exist on my system.


Version-Release number of selected component (if applicable):
Fedora release 16 (Verne)

How reproducible:


Steps to Reproduce:
1. turn on process accounting (systemctl enable psacct.service; systemctl start psacct.service)

  
Actual results:
1. Issuing command lastcomm, one will see some process accounting result and log file /var/account/psacct grows in size. 
2. In the next day, issuing command lastcomm again, one will see nothing. Log file /var/account/psacct remains 0 bytes and the rotated log file psacct-<yesterday's date> grows. 

Expected results:

In the nxt day, issuing command lastcomm again, one should see process accounting results and the log file /var/account/psacct grows in size. 

Additional info:

It seems that /etc/logrotate.d/psacct is not updated after the systemd migration. The problem went away after I replaced "/etc/init.d/psacct status" by "systemctl status psacct.service".

Comment 1 Hui Chen 2012-03-12 14:44:35 UTC
I just found that the problem I reported was a duplicate of 759321.

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


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