diff --git a/dmraid.changes b/dmraid.changes index 12e1a8b..d50df9f 100644 --- a/dmraid.changes +++ b/dmraid.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 21 09:40:42 UTC 2014 - jsegitz@novell.com + +- added necessary macros for systemd files + ------------------------------------------------------------------- Fri Sep 13 20:04:57 UTC 2013 - crrodriguez@opensuse.org diff --git a/dmraid.spec b/dmraid.spec index 9cf7337..82f811d 100644 --- a/dmraid.spec +++ b/dmraid.spec @@ -1,7 +1,7 @@ # # spec file for package dmraid # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -115,6 +115,9 @@ install -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/dmraid-activation.service install -d %{buildroot}%{_tmpfilesdir} echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid.conf +%pre +%service_add_pre dmraid-activation.service + %preun %service_del_preun dmraid-activation.service @@ -126,6 +129,7 @@ echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid. %postun /sbin/ldconfig +%service_del_postun dmraid-activation.service [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup %{insserv_cleanup}