/etc/rc.d/init.d/nfs not executed why?

/etc/rc.d/init.d/nfs not executed why?

Post by Neal Rhode » Fri, 08 Jun 2001 00:03:13



Redhat 6.2 system, and the nfs script is in the above directory, is
linked into the other rc0.d, rc1.d as K20nfs.

But it doesn't seem to execute at startup.  The boot.log shows no
messages from it.   Just running it by hand causes nfs to start
properly.   I don't see why it's not running.

--

------------------------------------------------------------------------------
Neal Rhodes                       MNOP Ltd                     (770)-
972-5430
President                Lilburn (atlanta) GA 30247             Fax:
978-4741

                          http://www.mnopltd.com/

 
 
 

/etc/rc.d/init.d/nfs not executed why?

Post by Art Werschul » Fri, 08 Jun 2001 02:23:36


Hi.


> Redhat 6.2 system, and the nfs script is in the above directory, is
> linked into the other rc0.d, rc1.d as K20nfs.

> But it doesn't seem to execute at startup.  The boot.log shows no
> messages from it.   Just running it by hand causes nfs to start
> properly.   I don't see why it's not running.

You need to symlink /etc/rc.d/init.d/nfs as a file Snnfs (where nn is
a pair of decimal digits) in the /etc/rc.d/rc?.d directories.  Here,
the "?" represents the runlevel (see /etc/inittab).

For instance:

  $ file /etc/rc.d/rc?.d/S*nfs
  /etc/rc.d/rc3.d/S60nfs: symbolic link to ../init.d/nfs
  /etc/rc.d/rc5.d/S60nfs: symbolic link to ../init.d/nfs

More generally: filenames starting with S ("start") are executed
during booting to a certain runlevel, and filenames starting with K
("kill") are executed during shutdown from a particular runlevel.

--
Art Werschulz (8-{)}   "Metaphors be with you."  -- bumper sticker
GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y?

ATTnet:   Columbia U. (212) 939-7061, Fordham U. (212) 636-6325