diff --git a/cyrus-sasl.spec b/cyrus-sasl.spec index 7921aab..93182ce 100644 --- a/cyrus-sasl.spec +++ b/cyrus-sasl.spec @@ -8,7 +8,7 @@ Summary: The Cyrus SASL library Name: cyrus-sasl Version: 2.1.23 -Release: 4%{?dist} +Release: 5%{?dist} License: BSD Group: System Environment/Libraries # Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/; @@ -387,7 +387,7 @@ fi %{_sbindir}/sasl2-shared-mechlist %changelog -* Thu Sep 24 2009 Jan F. Chadima - 2.1.23-4 +* Thu Sep 24 2009 Jan F. Chadima - 2.1.23-5 - Repair initscript to make condrestart working properly (#522103) * Wed Sep 23 2009 Jan F. Chadima - 2.1.23-3 diff --git a/saslauthd.init b/saslauthd.init index 6239554..3132027 100755 --- a/saslauthd.init +++ b/saslauthd.init @@ -38,7 +38,7 @@ lockfile=/var/lock/subsys/$prog start() { [ -x $path ] || exit 5 echo -n $"Starting $prog: " - daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS + daemon $path -m $SOCKETDIR -a $MECH $FLAGS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch $lockfile @@ -98,7 +98,12 @@ case "$1" in status) rh_status ;; - condrestart|try-restart) + condrestart) + if [ -f /var/lock/subsys/$prog ]; then + restart + fi + ;; + try-restart) rh_status_q || exit 0 restart ;;