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`"
|
logger -t ypbind "bound to NIS server `ypwhich 2> /dev/null`"
|
||||||
touch /var/lock/subsys/ypbind
|
touch /var/lock/subsys/ypbind
|
||||||
else
|
else
|
||||||
selinux_off
|
|
||||||
killproc ypbind
|
killproc ypbind
|
||||||
# if we used brute force (like kill -9) we don't want those around
|
# if we used brute force (like kill -9) we don't want those around
|
||||||
if [ x$(domainname) != x ] ; then
|
if [ x$(domainname) != x ] ; then
|
||||||
rm -f /var/yp/binding/$(domainname)*
|
rm -f /var/yp/binding/$(domainname)*
|
||||||
fi
|
fi
|
||||||
failure "attempting to contact yp server"
|
failure "attempting to contact yp server"
|
||||||
|
selinux_off
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
selinux_off
|
|
||||||
echo -n $"Shutting down NIS services: "
|
echo -n $"Shutting down NIS services: "
|
||||||
killproc ypbind
|
killproc ypbind
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
@ -106,6 +105,7 @@ stop() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
selinux_off
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user