fix to use %%systemd_postun_with_restart

- use %%systemd_postun_with_restart instead of plain old %%systemd_postun,
  because we can be restarted in the %%postun
This commit is contained in:
Nalin Dahyabhai 2013-01-18 15:33:41 -05:00
parent 82d11d1e54
commit dad72d3aa5

View File

@ -17,7 +17,7 @@
Name: oddjob
Version: 0.31.3
Release: 1%{?dist}
Release: 2%{?dist}
Source0: http://fedorahosted.org/released/oddjob/oddjob-%{version}.tar.gz
Source1: http://fedorahosted.org/released/oddjob/oddjob-%{version}.tar.gz.sig
Summary: A D-Bus service which runs odd jobs on behalf of client applications
@ -194,7 +194,7 @@ fi
%postun
%if %{systemd}
%systemd_postun oddjobd.service
%systemd_postun_with_restart oddjobd.service
%endif
%if %{sysvinit}
if [ $1 -gt 0 ] ; then
@ -244,6 +244,10 @@ fi
exit 0
%changelog
* Fri Jan 18 2013 Nalin Dahyabhai <nalin@redhat.com> 0.31.3-2
- use %%systemd_postun_with_restart instead of plain old %%systemd_postun,
because we can be restarted in the %%postun
* Thu Jan 17 2013 Nalin Dahyabhai <nalin@redhat.com> 0.31.3-1
- use newer systemd macros (#857375)