From: Christopher Knorr <cknorr@trapsystems.com>
Subject: SUMMARY: Modify System Startup/Shutdown on Tru64 Unix
Date: Wed, 29 Mar 2006 13:39:41 -0500 [thread overview]
Message-ID: <BF1459AB04AFE8498BE2E85D7C8C9D4C7A2636@mail1.hopsdc.com> (raw)
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".
reply other threads:[~2006-03-29 18:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox