From 65ae590f99fbf9dfd4c1730f8a331adb30c3aaa0 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 27 Nov 2006 20:44:42 +0000 Subject: [PATCH] Don't turn off SELinux boolean until ypbind service stopped --- ypbind.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ypbind.init b/ypbind.init index 96312d6..ecfb6f8 100755 --- a/ypbind.init +++ b/ypbind.init @@ -81,20 +81,19 @@ start() { logger -t ypbind "bound to NIS server `ypwhich 2> /dev/null`" touch /var/lock/subsys/ypbind else - selinux_off killproc ypbind # if we used brute force (like kill -9) we don't want those around if [ x$(domainname) != x ] ; then rm -f /var/yp/binding/$(domainname)* fi failure "attempting to contact yp server" + selinux_off fi echo return $RETVAL } stop() { - selinux_off echo -n $"Shutting down NIS services: " killproc ypbind RETVAL=$? @@ -106,6 +105,7 @@ stop() { fi fi echo + selinux_off return $RETVAL }