[NTLUG:Discuss] How to stop process at system shutdown

Indraneel Majumdar lists at 123india.com
Wed Feb 14 19:44:01 CST 2001


Both start and stop scripts are need in each runlevel except 0 and 6
(which has only the halt or reboot script). The system executes the S*
scripts when it enters the runlevel (after checking whether the service is
already running) and executes the stop scripts (after checking whether 
the called runlevel has the start script for the same) when it leaves
the runlevel.

\Indraneel

On Wed, 14 Feb 2001, Gregory L. Camp wrote:

> Neil,
> 
> You shouldn't put the start/stop commands in the same rc?.d directory (rc3.d
> in your example).  The stop command should be in rc0.d and rc6.d instead.
> 
> You enter rc0.d when you shutdown and halt (i.e. shutdown -h now), and rc6.d
> when you shutdown and reboot (i.e. shutdown -r now).
> 
> Greg




More information about the Discuss mailing list