Setting up scripts to automatically stop processes

The following example shows how to set up an /etc/rc0.d script.

Procedure

  1. Set up a symbolic link in /etc/rc0.d:

    /etc/rc0.d/K##rational --> /etc/init.d/rational

  2. Ensure that the pound signs (##) reflect the order in which operations are performed.

    Make this value low. K## does not need to be different from S##. rc0.d represents the run level of the operation.

    Level 0 shutdown is the standard.

    During shutdown, the process automatically sends the appropriate argument ("stop").


Feedback