post-rotate script aligned with systemd usage
Resolves: rhbz#2015020
This commit is contained in:
parent
752657f8ab
commit
57962ceede
@ -9,7 +9,7 @@
|
|||||||
create 0600 root root
|
create 0600 root root
|
||||||
postrotate
|
postrotate
|
||||||
if %{_bindir}/systemctl --quiet is-active psacct.service ; then
|
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
|
fi
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ ConditionPathExists=/var/account
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStartPre=/usr/libexec/psacct/accton-create
|
ExecStartPre=/usr/libexec/psacct/accton-create
|
||||||
ExecStart=/usr/sbin/accton /var/account/pacct
|
ExecStart=/usr/sbin/accton /var/account/pacct
|
||||||
|
ExecReload=/usr/sbin/accton /var/account/pacct
|
||||||
ExecStop=/usr/sbin/accton off
|
ExecStop=/usr/sbin/accton off
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
Summary: Utilities for monitoring process activities
|
Summary: Utilities for monitoring process activities
|
||||||
Name: psacct
|
Name: psacct
|
||||||
Version: 6.6.4
|
Version: 6.6.4
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/acct/
|
URL: http://www.gnu.org/software/acct/
|
||||||
|
|
||||||
@ -133,6 +133,10 @@ touch /var/account/pacct && chmod 0600 /var/account/pacct
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 28 2021 Jan Rybar <jrybar@redhat.com> - 6.6.4-12
|
||||||
|
- post-rotate script aligned with systemd usage
|
||||||
|
- Resolves: rhbz#2015020
|
||||||
|
|
||||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 6.6.4-11
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 6.6.4-11
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
Loading…
Reference in New Issue
Block a user