rpms/autofs/F-11 autofs-5.0.5-fix-pidof-init-script-usage.patch, NONE, 1.1 autofs.spec, 1.295, 1.296
Ian Kent
iankent at fedoraproject.org
Wed Nov 25 01:43:15 UTC 2009
- Previous message (by thread): rpms/apbs/devel .cvsignore, 1.3, 1.4 apbs.spec, 1.2, 1.3 sources, 1.3, 1.4
- Next message (by thread): rpms/mypaint/F-11 .cvsignore, 1.3, 1.4 mypaint.spec, 1.6, 1.7 sources, 1.3, 1.4 mypaint-mypaint.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: iankent
Update of /cvs/pkgs/rpms/autofs/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32728
Modified Files:
autofs.spec
Added Files:
autofs-5.0.5-fix-pidof-init-script-usage.patch
Log Message:
* Wed Nov 25 2009 Ian Kent <ikent at redhat.com> - 1:5.0.4-47
- fix pidof init script usage.
autofs-5.0.5-fix-pidof-init-script-usage.patch:
redhat/autofs.init.in | 8 ++++----
samples/rc.autofs.in | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
--- NEW FILE autofs-5.0.5-fix-pidof-init-script-usage.patch ---
autofs-5.0.5 - fix pidof init script usage
From: Ian Kent <raven at themaw.net>
For some reason, following an update, pidof doesn't return the pid
of a running automount daemon when the path is used rather than just
the name, probably to do with the inode of the daemon program changing.
So we change the init script to use just the program name rather than
the path.
---
redhat/autofs.init.in | 8 ++++----
samples/rc.autofs.in | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
--- autofs-5.0.4.orig/redhat/autofs.init.in
+++ autofs-5.0.4/redhat/autofs.init.in
@@ -101,14 +101,14 @@ function start() {
function stop() {
echo -n $"Stopping $prog: "
count=0
- while [ -n "`pidof $DAEMON`" -a $count -lt 15 ] ; do
+ while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
killproc $prog -TERM >& /dev/null
RETVAL=$?
- [ $RETVAL = 0 -a -z "`pidof $DAEMON`" ] || sleep 3
+ [ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
count=`expr $count + 1`
done
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/autofs
- if [ -n "`pidof $DAEMON`" ] ; then
+ if [ -n "`pidof $prog`" ] ; then
failure "$prog shutdown"
else
success "$prog shutdown"
@@ -128,7 +128,7 @@ function reload() {
RETVAL=1
return $RETVAL
fi
- pid=`pidof $DAEMON`
+ pid=`pidof $prog`
if [ -z $pid ]; then
echo $"$prog not running"
RETVAL=1
--- autofs-5.0.4.orig/samples/rc.autofs.in
+++ autofs-5.0.4/samples/rc.autofs.in
@@ -88,13 +88,13 @@ function start() {
function stop() {
echo -n $"Stopping $prog: "
count=0
- while [ -n "`pidof $DAEMON`" -a $count -lt 15 ] ; do
+ while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
killall -TERM $prog >& /dev/null
RETVAL=$?
- [ $RETVAL = 0 -a -z "`pidof $DAEMON`" ] || sleep 3
+ [ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
count=`expr $count + 1`
done
- if [ -z "`pidof $DAEMON`" ] ; then
+ if [ -z "`pidof $prog`" ] ; then
echo "done."
else
echo "failed."
@@ -108,7 +108,7 @@ function restart() {
}
function reload() {
- pid=`pidof $DAEMON`
+ pid=`pidof $prog`
if [ -z $pid ]; then
echo $"$prog not running"
RETVAL=1
Index: autofs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/autofs/F-11/autofs.spec,v
retrieving revision 1.295
retrieving revision 1.296
diff -u -p -r1.295 -r1.296
--- autofs.spec 23 Nov 2009 02:40:18 -0000 1.295
+++ autofs.spec 25 Nov 2009 01:43:15 -0000 1.296
@@ -4,7 +4,7 @@
Summary: A tool for automatically mounting and unmounting filesystems
Name: autofs
Version: 5.0.4
-Release: 46
+Release: 47
Epoch: 1
License: GPLv2+
Group: System Environment/Daemons
@@ -80,6 +80,7 @@ Patch67: autofs-5.0.5-fix-stale-init-for
Patch68: autofs-5.0.5-fix-ext4-fsck-at-mount.patch
Patch69: autofs-5.0.4-fix-typo-in-init-script.patch
Patch70: autofs-5.0.4-fix-timeout-in-connect_nb.patch
+Patch71: autofs-5.0.5-fix-pidof-init-script-usage.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
Requires: kernel >= 2.6.17
@@ -191,6 +192,7 @@ echo %{version}-%{release} > .version
%patch68 -p1
%patch69 -p1
%patch70 -p1
+%patch71 -p1
%build
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
@@ -243,6 +245,9 @@ fi
%{_libdir}/autofs/
%changelog
+* Wed Nov 25 2009 Ian Kent <ikent at redhat.com> - 1:5.0.4-47
+- fix pidof init script usage.
+
* Mon Nov 23 2009 Ian Kent <ikent at redhat.com> - 1:5.0.4-46
- fix timeout in connect_nb().
- Previous message (by thread): rpms/apbs/devel .cvsignore, 1.3, 1.4 apbs.spec, 1.2, 1.3 sources, 1.3, 1.4
- Next message (by thread): rpms/mypaint/F-11 .cvsignore, 1.3, 1.4 mypaint.spec, 1.6, 1.7 sources, 1.3, 1.4 mypaint-mypaint.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list