- if the init script fails to start krb5kdc/kadmind/kpropd because it's

already running (according to status()), return 0 (part of #521772)
This commit is contained in:
Nalin Dahyabhai 2009-09-08 19:08:28 +00:00
parent 51ff876d52
commit 060205dbf8
4 changed files with 19 additions and 0 deletions

View File

@ -56,6 +56,11 @@ start() {
daemon ${kadmind} ${KRB5REALM:+-r ${KRB5REALM}} $KADMIND_ARGS
RETVAL=$?
echo
if test $RETVAL -ne 0 ; then
if status ${kadmind} > /dev/null ; then
RETVAL=0
fi
fi
[ $RETVAL = 0 ] && touch /var/lock/subsys/kadmin
}
stop() {

View File

@ -38,6 +38,11 @@ start() {
daemon ${kpropd} -S
RETVAL=$?
echo
if test $RETVAL -ne 0 ; then
if status ${kpropd} > /dev/null ; then
RETVAL=0
fi
fi
[ $RETVAL = 0 ] && touch /var/lock/subsys/kprop
}
stop() {

View File

@ -208,6 +208,10 @@ to obtain initial credentials from a KDC using a private key and a
certificate.
%changelog
* Tue Sep 8 2009 Nalin Dahyabhai <nalin@redhat.com>
- if the init script fails to start krb5kdc/kadmind/kpropd because it's already
running (according to status()), return 0 (part of #521772)
* Mon Aug 24 2009 Nalin Dahyabhai <nalin@redhat.com> - 1.7-7
- work around a compile problem with new openssl

View File

@ -41,6 +41,11 @@ start() {
daemon ${krb5kdc} ${KRB5REALM:+-r ${KRB5REALM}} $KRB5KDC_ARGS
RETVAL=$?
echo
if test $RETVAL -ne 0 ; then
if status ${krb5kdc} > /dev/null ; then
RETVAL=0
fi
fi
[ $RETVAL = 0 ] && touch /var/lock/subsys/krb5kdc
}
stop() {