Summary: Shutdown scripts...

From: <Karl.Rossing_at_Federated.CA>
Date: Wed Oct 15 2003 - 15:32:21 EDT
Question:
> I'd like to fixup my shutdown scripts since i'm seeing stuff like /opt 
> busy when i shutdown(It doesn't cause problems since i have 
> logging,noatime in /etc/vfstab)
> 
> Does someone know of a good document that explains the shutdown scripts.
> 
> ie: if i got samba starting in rc3.d do i need to put a kill script in 
> rc0.d and/or rc2.d


I got some great responses. Thanks! Here are two that stand out

==================
Darren Dunham
> Does someone know of a good document that explains the shutdown scripts.
> 
> ie: if i got samba starting in rc3.d do i need to put a kill script in 
> rc0.d and/or rc2.d

Most applications that you don't want running when you're doing
maintenance can be killed in 0 and 1.  Remember that you want to shut
them down *before* critical system bits are shut down, so make them
early in the K list (like 01 or 05).

If you keep the distinction between rc2 and rc3 (up, and up with
servers), then you might want to put a K script in rc2, so it will be
shutdown if you go from 3 to 2 and you want to turn off "services".
==================
 Warren Powell

In theory (and in good practice) you should shut down apps in the order 
that
they start. To do this, create a kill script in the rc?.d directory one
level below what they start in, so if you start an app in rc3.d, then kill
it in rc2.d and so forth, down to rcS.d.

The caveat is that the K numbers run in ascending order just like the S
scripts, so you ned to calcuate the startup numbers compliment by 
subratcing
it from 100, i.e., S95 becomes K05, S20 becomes K80 and so forth. Some
examples below:

/etc/rc3.d/S77someapp
/etc/rc2.d/K23someapp

/etc/rc1.d/S61otherapp
/etc/rc0.d/K39otherapp
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Oct 15 15:32:15 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:22 EST