autofs doesn't work automatically with NIS mounts; workarounds?
Hugh Caley
hcaley at rocketsoftware.com
Mon Nov 14 20:14:38 UTC 2011
> **
> >/ [root at naxos <https://admin.fedoraproject.org/mailman/listinfo/users> ~]# cat /etc/rc.d/rc.local
> />/ #!/bin/sh
> />/ 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.
This actually seems to do it. Found it on the Internet somewhere:
To make systemd wait for the the connection to be online, simply enable
NetworkManager-wait-online.service:
systemctl enable NetworkManager-wait-online.service
Hugh
--
*/Hugh Caley/
Linux System Administrator
Aldon Business Area
Rocket Software*
6001 Shellmound St. Ste. 600 · Emeryville, CA 94608 · USA
Tel:+1.510.285.8542
Email:hcaley at aldon.com
Web:aldon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20111114/194ebedd/attachment.html
More information about the users
mailing list