diff --git a/setroubleshoot.spec b/setroubleshoot.spec index 431b376..d0185b6 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -110,9 +110,7 @@ BuildRequires: setools-devel >= 3.3.7-19 BuildRequires: python-devel Requires: python-slip-dbus systemd-python -Requires(post): /sbin/chkconfig Requires(post): /sbin/service -Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %description server @@ -122,12 +120,10 @@ about the problem and help track its resolution. Alerts can be configured to user preference. The same tools can be run on existing log files. %post server -/sbin/service auditd reload >/dev/null 2>&1 || : +%systemd_post auditd.service %postun server -if [ $1 = 0 ]; then - /sbin/service auditd reload >/dev/null 2>&1 || : -fi +%systemd_postun_with_restart auditd.service %triggerun server -- %{name}-server < 2.1.1 /sbin/service %{name} stop >/dev/null 2>&1 || :