>>> On 3/10/2015 at 12:47 PM, "Levy, Alan" <[email protected]> wrote: 
> Chkconfig nfs is set on. I think the problem is that my script in boot.local 
> is executing before nfs is started.
> 
> Isn't there something like boot.aftereverthing ?

boot.anything is run very _early_ in the boot process, so that's not what you 
want.  rc.local is one option.  after.local is another one.  That is run after 
a runlevel is reached.  Note that this means _any_ runlevel, not just the 
default one.  That is, if you sign on and do a "telinit 5" it will run when it 
hits runlevel 5.  If you then do a "telinit 3" it will run again when it 
reaches runlevel 3.

If you just want it to run when accessing an NFS export is possible, you're 
better off creating an init script for it (using the skeleton provided) and 
specifying it needs to be started after the nfs service.  (Marcy's absolutely 
right about nfs versus nfsserver).

If you absolutely positively want this to run after everything else, you can 
try specifying $ALL to get it inserted at the end of the list of things to be 
started.  If multiple services have that, which one gets run last is 
non-deterministic.  ;)


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to