Re: Problem with start up script
John Walsh <[email protected]> Thu, 26 Jan 2017 08:36:36 -0800 (PST)
| Newsgroups | gmane.user-groups.linux.ilug.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Gerard, I encountered a similar problem a while ago doing some bare metal installs (in this case Ubuntu 16.04 LTS), and the problem was seen on machines that were using systemd coupled with Realtek network cards. In this case we were using using rc.local to implement a "firstboot" type solution to bootstap the installation. It would seem that rc.local was executed before the network was fully up. I was also seeing error messages in /var/log/syslog such as: rc.local[699]: Resolving hostXY.B.C.D (hostXY.B.C.D)... failed: Temporary failure in name resolution. Another symptom was that we also saw very slow response times in getting DHCP leases and downloading PXE kernel. A sleep delay of 30 seconds in rc.local did allow me to remedy the situation, but the underlying problem was at the network layer -- there was a big delay in establishing a network link with the (Dell) switch. This was remedied by ensuring the each of the corresponding machine switch ports were configured with "portfast" enabled. See also, http://serverfault.com/questions/102346/dhcp-server-slow-to-give-out-ips Although, the "portfast" issue may not be the root cause of your systems problem, it may be worth checking it out all the same. regards, John On Wednesday, 25 January 2017 11:15:54 UTC, g.hooton wrote: > > Hi all, > > I want to run a script at start up so I have put the command in > /etc/rc.local > > The problem is that the location of the script is on an autofs mount and > I think there is a problem resolving the hostname of the NFS server. > > Maybe I am running the script at the wrong runlevel ?? > > When the system is fully booted up I have no problem running the script. > > I am using CentOS 6.8 > > BTW it works fine on CentOS 5 > > Thanks > > //Ger > > > > -- > Gerard Hooton. > Senior Technical Officer > School of Engineering. > University College Cork. > College Road. > Cork. > Ireland. > Tel: +353 21 4902296 > Mobile: +353 852813491 > > -- Irish Linux Users Group --- You received this message because you are subscribed to the Google Groups "ILUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. Visit this group at https://groups.google.com/a/linux.ie/group/ilug/. To view this discussion on the web, visit https://groups.google.com/a/linux.ie/d/msgid/ilug/93341f6b-aa7e-45ee-bfea-0cff64fba2ab%40linux.ie.