[oddjob] fix to use %%systemd_postun_with_restart

Nalin Dahyabhai nalin at fedoraproject.org
Fri Jan 18 20:34:51 UTC 2013


commit dad72d3aa583ec9d902eefc048dd34b64c51a9b5
Author: Nalin Dahyabhai <nalin at redhat.com>
Date:   Fri Jan 18 15:33:41 2013 -0500

    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

 oddjob.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/oddjob.spec b/oddjob.spec
index b13154f..4fb61cd 100644
--- a/oddjob.spec
+++ b/oddjob.spec
@@ -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 at 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 at redhat.com> 0.31.3-1
 - use newer systemd macros (#857375)
 


More information about the scm-commits mailing list