On Thu, 5 Sep 2002, Rowel Atienza wrote:
..
> > On Wed, Sep 04, 2002 at 08:35:28PM +1000, Rowel Atienza wrote:
> > > cd /etc/rc5.d/
> > > ./S13portmap stop
> > > ./S14nfslock stop
> > > mv S13portmap _S13portmap
> > > mv S14nfslock _S14nfslock
..
>       I used to do it that way (K13portmap K14nfslock) until I encounter
> problems with solaris K scripts. The difference is when you prepend it
> with K instead of _S, the shutdown or telinit command will try to find a
> process to kill ( the K ) instead of simply ignoring it ( the _S ). If the
> the K script is not written properly, it's either it will refuse to
> proceed until it finds the right process pid to kill or it will generate
> lots of garbage messsages.

Yes under Solaris I prepend a _S or a _K to disable the script. But under 
RedHat Linux there is a Correct Sanctioned Way:

/sbin/chkconfig --level 5 nfslock off
/sbin/chkconfig --level 5 portmap off

This is because, unlike Solaris, in RedHat the contents of the /etc/rcX.d 
directories are just symlinks to /etc/init.d -- and correctly-written init 
scripts indicate what order/priority they have to be (the S14 and K14)


---
Orlando Andico <[EMAIL PROTECTED]>
Mosaic Communications, Inc.

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to