diff --git a/audit.spec b/audit.spec index 6cf65e8..a41a387 100644 --- a/audit.spec +++ b/audit.spec @@ -2,7 +2,7 @@ Summary: User space tools for kernel auditing Name: audit Version: 3.1.2 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL-2.0-or-later AND LGPL-2.0-or-later URL: http://people.redhat.com/sgrubb/audit/ Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz @@ -149,6 +149,7 @@ fi %preun %systemd_preun auditd.service +# Prefer script because it waits for auditd to terminate if [ -e /usr/libexec/initscripts/legacy-actions/auditd/stop ] ; then /usr/libexec/initscripts/legacy-actions/auditd/stop else @@ -157,11 +158,16 @@ fi %postun if [ $1 -ge 1 ]; then - state=$(systemctl status auditd | awk '/Active:/ { print $2 }') - if [ $state = "active" ] ; then - auditctl --signal stop - systemctl start auditd - fi + state=$(systemctl status auditd | awk '/Active:/ { print $2 }') + if [ $state = "active" ] ; then + # Prefer script because it waits for auditd to terminate + if [ -e /usr/libexec/initscripts/legacy-actions/auditd/stop ] ; then + /usr/libexec/initscripts/legacy-actions/auditd/stop + else + auditctl --signal stop + fi + systemctl start auditd + fi fi %files libs @@ -262,6 +268,9 @@ fi %attr(750,root,root) %{_sbindir}/audispd-zos-remote %changelog +* Fri Sep 01 2023 Steve Grubb 3.1.2-3 +- Change initscrips-service to a Recommends + * Sat Aug 26 2023 Steve Grubb 3.1.2-2 - SPDX Migration