Re: autofs doesn't work automatically with NIS mounts; workarounds?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> [root at naxos ~]# 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@xxxxxxxxx
Web:aldon.com
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux