Subject:,Re: autofs doesn't work automatically with NIS mounts; workarounds?
horsley1953 at gmail.com
Fri Nov 11 22:38:54 UTC 2011
On Fri, 11 Nov 2011 21:55:55 +0000
John Austin wrote:
> [root at naxos ~]# cat /etc/rc.d/rc.local
> service ypbind stop; sleep 2
> service autofs stop; sleep 2
> service ypbind start; sleep 2
> service autofs start; sleep 2
I do something similar, but I modify it thusly:
/bin/bash -c 'sleep 5 ; service ypbind restart' & < /dev/null > /dev/null 2>&1
That way rc.local doesn't hang, and ypbind gets restarted
in the background.
More information about the users