Re: Problem with start up script
Rodrigo de Campos <[email protected]> Wed, 25 Jan 2017 12:18:51 +0100
| Newsgroups | gmane.user-groups.linux.ilug.general |
|---|---|
| Message-ID | <CAPH5xVQBrX8eMwCzNX3x-yf0uW41zNNCf0zkhz=05K0WF=FnAA@mail.gmail.com> |
Hi Gerard, Have you tried checking the logs? (Assuming your script is generating any logs) Try to run a sample script (basically an echo writing a text file to /tmp) and see what happens. Regards, Rodrigo On Wed, Jan 25, 2017 at 12:15 PM, Gerard Hooton <[email protected]> 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/li > nux.ie/d/msgid/ilug/f427524d-095f-becc-6c38-2a32aa79921b%40ucc.ie. > -- Rodrigo de Campos -- 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/CAPH5xVQBrX8eMwCzNX3x-yf0uW41zNNCf0zkhz%3D05K0WF%3DFnAA%40mail.gmail.com.