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