SUMMARY: Modify System Startup/Shutdown on Tru64 Unix

From: Christopher Knorr (cknorr@trapsystems.com)
Date: Wed Mar 29 2006 - 13:39:41 EST


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".



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:29 EDT