[stud] Use new systemd-rpm macros (#857398).
rohara
rohara at fedoraproject.org
Wed Mar 20 14:48:17 UTC 2013
commit 66c36759d7c0c8e239261d76c3912cb0e0cc88e3
Author: Ryan O'Hara <rohara at redhat.com>
Date: Wed Mar 20 09:47:29 2013 -0500
Use new systemd-rpm macros (#857398).
stud.spec | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/stud.spec b/stud.spec
index 6023997..9e069b6 100644
--- a/stud.spec
+++ b/stud.spec
@@ -8,7 +8,7 @@
Name: stud
Version: 0.3
-Release: 2.20120814git%{?dist}
+Release: 3.20120814git%{?dist}
Summary: The Scalable TLS Unwrapping Daemon
License: BSD
@@ -63,23 +63,15 @@ useradd -r -g %{stud_group} -s /sbin/nologin -d %{stud_homedir} %{stud_user} &>/
%post
-if [ $1 -eq 1 ]; then
- /bin/systemctl daemon-reload >/dev/null 2>&1 ||:
-fi
+%systemd_post stud.service
%preun
-if [ $1 -eq 0 ]; then
- /bin/systemctl --no-reload disable stud.service >/dev/null 2>&1 ||:
- /bin/systemctl stop stud.service >/dev/null 2>&1 ||:
-fi
+%systemd_preun stud.service
%postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 ||:
-if [ $1 -ge 1 ]; then
- /bin/systemctl try-restart stud.service >/dev/null 2>&1 ||:
-fi
+%systemd_postun_with_restart stud.service
%files
@@ -95,6 +87,9 @@ fi
%changelog
+* Wed Mar 20 2013 Ryan O'Hara <rohara at redhat.com> - 0.3-3.20120814git
+- Use new systemd-rpm macros in stud spec file (#857398).
+
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3-2.20120814git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list