Repair initscript to make condrestart working properly
This commit is contained in:
parent
d389f22c8c
commit
1f75ca1537
@ -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 <jchadima@redhat.com> - 2.1.23-4
|
||||
* Thu Sep 24 2009 Jan F. Chadima <jchadima@redhat.com> - 2.1.23-5
|
||||
- Repair initscript to make condrestart working properly (#522103)
|
||||
|
||||
* Wed Sep 23 2009 Jan F. Chadima <jchadima@redhat.com> - 2.1.23-3
|
||||
|
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user