[rdma] More systemd tweaks

Doug Ledford dledford at fedoraproject.org
Wed Dec 5 18:39:38 UTC 2012


commit ead1160cd3bf22a9a01ab3752dbb8c37036f259b
Author: Doug Ledford <dledford at redhat.com>
Date:   Wed Dec 5 13:39:03 2012 -0500

    More systemd tweaks
    
    Signed-off-by: Doug Ledford <dledford at redhat.com>

 rdma.spec |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/rdma.spec b/rdma.spec
index a3a4040..6c444de 100644
--- a/rdma.spec
+++ b/rdma.spec
@@ -6,7 +6,7 @@
 Summary: Infiniband/iWARP Kernel Module Initializer
 Name: rdma
 Version: 2.0
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 Source0: rdma.conf
@@ -21,6 +21,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 BuildRequires: systemd
 Requires: udev >= 095
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
 
 %description 
 User space initialization scripts for the kernel InfiniBand/iWARP drivers
@@ -65,6 +68,15 @@ install -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
 %clean
 rm -rf %{buildroot}
 
+%post
+%systemd_post rdma.service
+
+%preun
+%systemd_preun rdma.service
+
+%postun
+%systemd_postun
+
 %post sysv
 if [ $1 = 1 ]; then
     /sbin/chkconfig --add %{name} 
@@ -90,6 +102,10 @@ fi
 %{_initrddir}/%{name}
 
 %changelog
+* Wed Dec 05 2012 Doug Ledford <dledford at redhat.com> - 2.0-6
+- Add some proper systemd scriptlets
+- Resolves: bz820154, bz816073, bz816389
+
 * Tue Nov 27 2012 Doug Ledford <dledford at redhat.com> - 2.0-5
 - Oops, we really do need that install section in our service file, so
   put it back


More information about the scm-commits mailing list