-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I think this finally solves: https://bugzilla.redhat.com/show_bug.cgi?id=606887
killproc only sends SIGTERM, but doesn't check whether the process actually exited before returning success. So we were trying to start up a new SSSD process before the previous one had fully shut down. - -- Stephen Gallagher RHCE 804006346421761 Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkzj2nEACgkQeiVVYja6o6NsfACfaHXO+5z0iwjBqipQUc5YEFMk GW4AoJImxpFJc61WssedmRvPSC0Cwn9z =gNKu -----END PGP SIGNATURE-----
From 62b20b09126323f2561bde4e58fbdb3ece4fafea Mon Sep 17 00:00:00 2001 From: Stephen Gallagher <sgall...@redhat.com> Date: Wed, 17 Nov 2010 08:29:19 -0500 Subject: [PATCH] Ensure that SSSD shuts down completely before restarting --- src/sysv/sssd | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/sysv/sssd b/src/sysv/sssd index 47804371d0be6b537bc03226f0fd67d03c6ce58e..7339d86deb9792285691032bebb5205f4894a671 100644 --- a/src/sysv/sssd +++ b/src/sysv/sssd @@ -48,8 +48,17 @@ start() { stop() { echo -n $"Stopping $prog: " + pid=`cat $PID_FILE` + killproc -p $PID_FILE $SSSD -TERM RETVAL=$? + + # Wait until the monitor exits + while (checkpid $pid) + do + usleep 100000 + done + echo [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE return $RETVAL -- 1.7.3.2
0001-Ensure-that-SSSD-shuts-down-completely-before-restar.patch.sig
Description: PGP signature
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel