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 }