[ILUG] Where to put jobs that start with boot-up

From: Oisin Kim (Oisin.Kim at domain cs.tcd.ie)
Date: Sat 09 Jun 2001 - 09:21:32 IST


Hello all,

I just need to be told that what I'm doing is OK and not
dangerous/wrong/stupid! I need to set some PATH and JAVA_PATH variables and
then start some servers before login so the machines will boot into a ready
to work state.

I have placed the following at the top of the file "/etc/rc.d/rc.local"

...
echo "Setting PATH"
export PATH=/usr/java/jdk1.3.1/bin:/usr/java/j2sdkee1.2.1/bin:/usr/orion:$PATH
echo "Setting JAVA_PATH"
export JAVA_PATH=/usr/java/jdk1.3.1
echo "Starting Orion"
sh /usr/scripts/startservers.sh
sleep 7
...

The sleep is just so I don't get the output of the last script telling me it
has started in the middle of my login (I've set inittab to start the machine
at run level 3)

Is this the correct way to do this or is there a more proper / correct way?

Thanks for any replies / help!

Oisin Kim

Department Of Compputer Science
Trinity College Dublin



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:36 GMT