post-rotate script aligned with systemd usage
Resolves: RHEL-62932
This commit is contained in:
parent
a8519c79c8
commit
2bbc93688d
@ -9,7 +9,7 @@
|
||||
create 0600 root root
|
||||
postrotate
|
||||
if %{_bindir}/systemctl --quiet is-active psacct.service ; then
|
||||
%{_sbindir}/accton /var/account/pacct | %{_bindir}/grep -v "Turning on process accounting, file set to '/var/account/pacct'." | %{_bindir}/cat
|
||||
%{_bindir}/systemctl reload psacct.service
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@ ConditionPathExists=/var/account
|
||||
Type=oneshot
|
||||
ExecStartPre=/usr/libexec/psacct/accton-create
|
||||
ExecStart=/usr/sbin/accton /var/account/pacct
|
||||
ExecReload=/usr/sbin/accton /var/account/pacct
|
||||
ExecStop=/usr/sbin/accton off
|
||||
RemainAfterExit=yes
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
Summary: Utilities for monitoring process activities
|
||||
Name: psacct
|
||||
Version: 6.6.4
|
||||
Release: 24%{?dist}
|
||||
Release: 25%{?dist}
|
||||
License: GPL-3.0-or-later
|
||||
URL: http://www.gnu.org/software/acct/
|
||||
|
||||
@ -125,6 +125,10 @@ touch /var/account/pacct && chmod 0600 /var/account/pacct
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 28 2025 Jan Rybar <jrybar@redhat.com> - 6.6.4-25
|
||||
- post-rotate script aligned with systemd usage
|
||||
- Resolves: RHEL-62932
|
||||
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 6.6.4-24
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
Loading…
Reference in New Issue
Block a user