[sidc/f17] Updating to use systemd macros

Richard Marko rmarko at fedoraproject.org
Thu Aug 23 08:03:46 UTC 2012


commit b683c1df8e41389fd3a192241e22b4994263701d
Author: Richard Marko <rissko at gmail.com>
Date:   Thu Aug 23 10:01:17 2012 +0200

    Updating to use systemd macros

 sidc.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/sidc.spec b/sidc.spec
index ab9cbd2..fff7269 100644
--- a/sidc.spec
+++ b/sidc.spec
@@ -5,7 +5,7 @@
 
 Name:           sidc
 Version:        1.8
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A VLF signal monitor for recording sudden ionospheric disturbances
 
 Group:          Applications/Communications
@@ -69,9 +69,18 @@ useradd -r -g sidc -d %{_localstatedir}/lib/sidc -s /sbin/nologin \
 exit 0
 
 %post
-systemctl --system daemon-reload
+%systemd_post sidc.service
+
+%preun
+%systemd_preun sidc.service
+
+%postun
+%systemd_postun_with_restart sidc.service
 
 %changelog
+* Wed Aug 22 2012 Lukáš Nykrýn <lnykryn at redhat.com> - 1.8-2
+- Scriptlets replaced with new systemd macros (#850409)
+
 * Mon Jul 23 2012 Richard Marko <rmarko at redhat.com> - 1.8-1
 - Version bump, use tmpfiles.d
 * Mon Jul 23 2012 Richard Marko <rmarko at redhat.com> - 1.7-2


More information about the scm-commits mailing list