[lsyncd/f17: 4/4] * Wed Dec 19 2012 Paul Wouters <pwouters at redhat.com> - 2.1.4-1 - Merged in changes of rhbz#805849 -
Paul Wouters
pwouters at fedoraproject.org
Fri Dec 21 04:19:37 UTC 2012
commit 84b92ec7c01b04c367246a2e85dcd3cad88ae6c2
Author: Paul Wouters <pwouters at redhat.com>
Date: Thu Dec 20 23:19:12 2012 -0500
* Wed Dec 19 2012 Paul Wouters <pwouters at redhat.com> - 2.1.4-1
- Merged in changes of rhbz#805849
- Fixed URL/Source
- Added systemd servuce
lsyncd.spec | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/lsyncd.spec b/lsyncd.spec
index 78f9ac2..164a6f6 100644
--- a/lsyncd.spec
+++ b/lsyncd.spec
@@ -48,13 +48,25 @@ install -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -p -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/
%post
-%systemd_post lsyncd.service
+if [ $1 -eq 1 ] ; then
+ # Initial installation
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+fi
%preun
-%systemd_preun lsyncd.service
+if [ $1 -eq 0 ] ; then
+ # Package removal, not upgrade
+ /bin/systemctl --no-reload disable lsyncd.service > /dev/null 2>&1 || :
+ /bin/systemctl stop lsyncd.service > /dev/null 2>&1 || :
+fi
+
%postun
-%systemd_postun_with_restart lsyncd.service
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+ # Package upgrade, not uninstall
+ /bin/systemctl try-restart lsyncd.service >/dev/null 2>&1 || :
+fi
%files
%doc %{_mandir}/man1/lsyncd.1*
@@ -70,10 +82,7 @@ install -p -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/
* Wed Dec 19 2012 Paul Wouters <pwouters at redhat.com> - 2.1.4-1
- Merged in changes of rhbz#805849
- Fixed URL/Source
-- Upgraded systemd macros
-
-* Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.4-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+- Added systemd service
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list