Don't turn off SELinux boolean until ypbind service stopped
This commit is contained in:
parent
9d8b48a338
commit
65ae590f99
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user