**
>/  [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:hca...@aldon.com
Web:aldon.com
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to