* Wed Aug 18 2010 Ian Kent <ikent@redhat.com> - 1:5.0.5-30.fc15

- fix restart not working (bz624694).
This commit is contained in:
Ian Kent 2010-08-18 13:17:18 +08:00
parent 15f9c54622
commit 73f8362b4a
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
autofs-5.0.5 - fix restart
From: Ian Kent <raven@themaw.net>
The recent LSB improvement change has introduced a problem with
the restart action.
---
redhat/autofs.init.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in
index 1e926ce..e2a4b78 100644
--- a/redhat/autofs.init.in
+++ b/redhat/autofs.init.in
@@ -126,7 +126,7 @@ function stop() {
}
function restart() {
- status > /dev/null 2>&1
+ status autofs > /dev/null 2>&1
if [ $? -eq 0 ]; then
stop
fi

View File

@ -4,7 +4,7 @@
Summary: A tool for automatically mounting and unmounting filesystems
Name: autofs
Version: 5.0.5
Release: 29%{?dist}
Release: 30%{?dist}
Epoch: 1
License: GPLv2+
Group: System Environment/Daemons
@ -60,6 +60,7 @@ Patch48: autofs-5.0.5-expire-thread-use-pending-mutex.patch
Patch49: autofs-5.0.5-include-krb5-library.patch
Patch50: autofs-5.0.5-make-verbose-mode-a-little-less-verbose.patch
Patch51: autofs-5.0.5-remove-ERR_remove_state-openssl-call.patch
Patch52: autofs-5.0.5-fix-restart.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, libxml2-devel, cyrus-sasl-devel, openssl-devel module-init-tools util-linux nfs-utils e2fsprogs libtirpc-devel
Conflicts: cyrus-sasl-lib < 2.1.23-9
@ -153,6 +154,7 @@ echo %{version}-%{release} > .version
%patch49 -p1
%patch50 -p1
%patch51 -p1
%patch52 -p1
%build
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
@ -205,6 +207,9 @@ fi
%{_libdir}/autofs/
%changelog
* Wed Aug 18 2010 Ian Kent <ikent@redhat.com> - 1:5.0.5-30.fc15
- fix restart not working (bz624694).
* Wed Aug 11 2010 Ian Kent <ikent@redhat.com> - 1:5.0.5-29
- remove ERR_remove_state() openssl call.