[dovecot/f16] call systemd reload in postun

Michal Hlavinka mhlavink at fedoraproject.org
Fri Dec 2 15:27:30 UTC 2011


commit 5673c90d153093fdd0486f46bc75cf7ef31d0bff
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Fri Dec 2 16:27:25 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 9794f33..0f61f1e 100644
--- a/dovecot.spec
+++ b/dovecot.spec
@@ -2,7 +2,7 @@ Summary: Secure imap and pop3 server
 Name: dovecot
 Epoch: 1
 Version: 2.0.16
-Release: 1%{?dist}
+Release: 2%{?dist}
 #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2
 License: MIT and LGPLv2
 Group: System Environment/Daemons
@@ -216,7 +216,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
@@ -266,6 +266,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 || :
@@ -399,6 +403,9 @@ make check
 %{_libdir}/%{name}/dict/libdriver_pgsql.so
 
 %changelog
+* Fri Dec 02 2011 Michal Hlavinka <mhlavink at redhat.com> - 1:2.0.16-2
+- call systemd reload in postun
+
 * Mon Nov 21 2011 Michal Hlavinka <mhlavink at redhat.com> - 1:2.0.16-1
 - dovecot updated to 2.0.16
 


More information about the scm-commits mailing list