summaryrefslogtreecommitdiffstats
path: root/freeipa.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r--freeipa.spec.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index a40368dea..198f4a423 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -440,6 +440,19 @@ if [ "$1" -ge "1" ]; then
%endif
fi
+%pre server
+# Stop ipa_kpasswd if it exists before upgrading so we don't have a
+# zombie process when we're done.
+if [ -e /usr/sbin/ipa_kpasswd ]; then
+%if 0%{?fedora} >= 16
+# Use systemd scheme
+ /bin/systemctl stop ipa_kpasswd.service >/dev/null 2>&1 || :
+%else
+# Use SystemV scheme only before F16
+ /sbin/service ipa_kpasswd stop >/dev/null 2>&1 || :
+%endif
+fi
+
%pre server-selinux
if [ -s /etc/selinux/config ]; then
. %{_sysconfdir}/selinux/config