SUMMARY: Modify System Startup/Shutdown on Tru64 Unix

From: Christopher Knorr <cknorr_at_trapsystems.com>
Date: Wed, 29 Mar 2006 13:39:41 -0500

QUESTION:

Please explain the exact steps needed to add a script to the Tru64 Unix
startup process.

I got a tremendous amount of great responses to this, as well as a
surprising number of people who wanted to know the same thing (which
made me feel better!).

ANSWER:

Copy your script to /sbin/init.d. Assume in this example the script is
called example.sh. The script should have execute permission (chmod +x)
and be able to handle one parameter ($1 = start and $1 = stop). Look at
other scripts in this directory for examples.

Now go to /sbin/rc3.d. Create a symbolic link to your script starting
with an S and followed by the number that corresponds to the order in
which you want the script to start. For example:

ln -s ../init.d/example.sh S99example

If you want a corresponding shutdown script, the "S" should be replaced
with a "K".
Received on Wed Mar 29 2006 - 18:41:21 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT