[ypbind] Don't fail when killing ypbind after unsuccessfull start fails

Jan Horak hhorak at fedoraproject.org
Tue Jan 24 15:14:58 UTC 2012


commit 615e0151919279b4edc34466a05ebef562c9e056
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date:   Tue Jan 24 15:59:15 2012 +0100

    Don't fail when killing ypbind after unsuccessfull start fails

 ypbind-post-waitbind |    2 +-
 ypbind.spec          |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ypbind-post-waitbind b/ypbind-post-waitbind
index 31476aa..1c68132 100755
--- a/ypbind-post-waitbind
+++ b/ypbind-post-waitbind
@@ -48,7 +48,7 @@ else
         "NIS server for domain `domainname` is not responding."
     logger -t ypbind \
         "Killing ypbind with PID $MAINPID."
-    kill SIGTERM $MAINPID
+    kill SIGTERM $MAINPID || :
 fi
 
 exit $retval
diff --git a/ypbind.spec b/ypbind.spec
index 797a223..2cc5b3e 100644
--- a/ypbind.spec
+++ b/ypbind.spec
@@ -1,7 +1,7 @@
 Summary: The NIS daemon which binds NIS clients to an NIS domain
 Name: ypbind
 Version: 1.33
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
@@ -117,6 +117,9 @@ fi
 %doc README NEWS COPYING
 
 %changelog
+* Tue Jan 24 2012 Honza Horak <hhorak at redhat.com> - 3:1.33-11
+- Don't fail when killing ypbind after unsuccessfull start fails
+
 * Thu Jan 12 2012 Honza Horak <hhorak at redhat.com> - 3:1.33-10
 - Fail to start ypbind service if domainname is not set
 


More information about the scm-commits mailing list