[dovecot] call systemd reload in postun

Michal Hlavinka mhlavink at fedoraproject.org
Fri Dec 2 14:55:01 UTC 2011


commit 800dfd971703e1beeaafd91870c4922bff3782c0
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Fri Dec 2 15:54:54 2011 +0100

    call systemd reload in postun

 dovecot.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/dovecot.spec b/dovecot.spec
index e8ad3ce..7f7fa36 100644
--- a/dovecot.spec
+++ b/dovecot.spec
@@ -3,7 +3,7 @@ Name: dovecot
 Epoch: 1
 Version: 2.1
 %global prever .rc1
-Release: 0.1%{prever}%{?dist}
+Release: 0.2%{prever}%{?dist}
 #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2
 License: MIT and LGPLv2
 Group: System Environment/Daemons
@@ -219,7 +219,7 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %pre
-#dovecot uig and gid are reserved, see /usr/share/doc/setup-*/uidgid 
+#dovecot uid and gid are reserved, see /usr/share/doc/setup-*/uidgid 
 getent group dovecot >/dev/null || groupadd -r --gid 97 dovecot
 getent passwd dovecot >/dev/null || \
 useradd -r --uid 97 -g dovecot -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot IMAP server" dovecot
@@ -269,6 +269,10 @@ if [ $1 = 0 ]; then
 fi
 
 %postun
+%if %{?fedora}0 > 140 || %{?rhel}0 > 60
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+%endif
+
 if [ "$1" -ge "1" ]; then
 %if %{?fedora}0 > 140 || %{?rhel}0 > 60
     /bin/systemctl try-restart dovecot.service >/dev/null 2>&1 || :
@@ -403,6 +407,9 @@ make check
 %{_libdir}/%{name}/dict/libdriver_pgsql.so
 
 %changelog
+* Fri Dec 02 2011 Michal Hlavinka <mhlavink at redhat.com> - 1:2.1-0.2.rc1
+- call systemd reload in postun
+
 * Wed Nov 30 2011 Michal Hlavinka <mhlavink at redhat.com> - 1:2.1-0.1.rc1
 - updated to 2.1.rc1
 - major changes since 2.0.x:


More information about the scm-commits mailing list