All these bugs still exist in Ubuntu 24.04.1 LTS

I'll add a fourth problem with /etc/cron.monthly/acct as assumption "2-B":

2-B. That the rolled accounting file is present as wtmp.1 or wtmp.1.gz

If you have enabled option "dateext" for your logrotate runs, then the rolled 
accounting
file will be named something like "wtmp-20240830.gz", not wtmp.1.gz

The /etc/cron.monthly/acct script only looks for "wtmp.1" and "wtmp.1.gz" and
will not find your rolled file at all.

This script can't work under cron.monthly.  As suggested by Shane, it might 
work if moved to
a postrotate option set in /etc/logrotate.d/wtmp

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1942056

Title:
  /etc/cron.monthly/acct fails if wtmp not rolled monthly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acct/+bug/1942056/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to