Introduce systemd unit file, drop SysV support

This commit is contained in:
Steve 2011-07-26 20:28:48 -04:00
parent 8b5d586a4b
commit 2d98cfa2f0

View File

@ -162,11 +162,11 @@ if [ $1 = 0 ]; then
/bin/systemctl stop auditd.service > /dev/null 2>&1 || :
fi
%files libs
%triggerun -- audit < 2.1.2-2
/sbin/chkconfig --del auditd >/dev/null 2>&1 || :
/bin/systemctl try-restart auditd.service >/dev/null 2>&1 || :
%files libs
%defattr(-,root,root,-)
%attr(755,root,root) /%{_lib}/libaudit.so.1*
%attr(755,root,root) /%{_lib}/libauparse.*
@ -219,7 +219,7 @@ fi
%attr(755,root,root) %{_bindir}/aulast
%attr(755,root,root) %{_bindir}/aulastlog
%attr(755,root,root) %{_bindir}/ausyscall
%{_unitdir}/auditd.service
%attr(755,root,root) %{_unitdir}/auditd.service
%attr(750,root,root) %dir %{_var}/log/audit
%attr(750,root,root) %dir /etc/audit
%attr(750,root,root) %dir /etc/audisp