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
|
Summary: The Cyrus SASL library
|
||||||
Name: cyrus-sasl
|
Name: cyrus-sasl
|
||||||
Version: 2.1.23
|
Version: 2.1.23
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
# Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/;
|
# Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/;
|
||||||
@ -387,7 +387,7 @@ fi
|
|||||||
%{_sbindir}/sasl2-shared-mechlist
|
%{_sbindir}/sasl2-shared-mechlist
|
||||||
|
|
||||||
%changelog
|
%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)
|
- Repair initscript to make condrestart working properly (#522103)
|
||||||
|
|
||||||
* Wed Sep 23 2009 Jan F. Chadima <jchadima@redhat.com> - 2.1.23-3
|
* Wed Sep 23 2009 Jan F. Chadima <jchadima@redhat.com> - 2.1.23-3
|
||||||
|
@ -38,7 +38,7 @@ lockfile=/var/lock/subsys/$prog
|
|||||||
start() {
|
start() {
|
||||||
[ -x $path ] || exit 5
|
[ -x $path ] || exit 5
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
|
daemon $path -m $SOCKETDIR -a $MECH $FLAGS
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && touch $lockfile
|
[ $RETVAL -eq 0 ] && touch $lockfile
|
||||||
@ -98,7 +98,12 @@ case "$1" in
|
|||||||
status)
|
status)
|
||||||
rh_status
|
rh_status
|
||||||
;;
|
;;
|
||||||
condrestart|try-restart)
|
condrestart)
|
||||||
|
if [ -f /var/lock/subsys/$prog ]; then
|
||||||
|
restart
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
try-restart)
|
||||||
rh_status_q || exit 0
|
rh_status_q || exit 0
|
||||||
restart
|
restart
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user