Don't turn off SELinux boolean until ypbind service stopped

This commit is contained in:
Daniel J Walsh 2006-11-27 20:44:42 +00:00
parent 9d8b48a338
commit 65ae590f99
1 changed files with 2 additions and 2 deletions

View File

@ -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
}