SUMMARY: Modify System Startup/Shutdown on Tru64 Unix
Christopher Knorr <[email protected]>
| Newsgroups | gmane.os.tru64.managers |
|---|---|
| Message-ID | <[email protected]> |
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".