[Bug 50430] Re: NIS has problems starting before the network comes up
Paul Smith
psmith at gnu.org
Thu Oct 14 18:12:41 BST 2010
Here's what I use. This works for me in 10.04 (and below) but I haven't
tried it with 10.10 yet.
It sure as heck would be nice if someone paid a little attention to this
bug.
Save this as "reautofs", then follow the directions in the comments.
#!/bin/sh
#
# Stupid NetworkManager doesn't wait for NIS to start before starting
# autofs, so we have no maps. Restart it.
#
# Install with:
# sudo cp ~/Downloads/reautofs /etc/init.d
# sudo update-rc.d reautofs defaults 99
#
#
# Author: Paul Smith <psmith at gnu.org>
start () {
nohup /bin/sh -c '
while true; do
ypwhich && break;
sleep 1;
done;
/etc/init.d/autofs restart
' </dev/null >/dev/null 2>&1 &
}
case $1 in
start) start ;;
*) : no op ;;
esac
--
NIS has problems starting before the network comes up
https://bugs.launchpad.net/bugs/50430
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nis in ubuntu.
More information about the Ubuntu-server-bugs
mailing list