Joe schrieb:

> To counter this problem, I've move all the config into /etc/rc.d/rc5.d
> instead and now problem 1 & 2 are solved.

This directory is not the right place for general configs. It's for the
sysvinit, only symlinks to daemons that should be started or stopped when
entering runlevel 5.

> 1)       There should be the proper place to put this environment
> Setting?. In /etc/profile or  /etc/rc.d/rc.local ?
> 2)       Why is there a different when the system boot up?.

rc.local is executed _after_ the above mentioned init scripts are executed.

The best way is to not modify /etc/profile, or you will have to adjust it
every time you upgrade your system because most of the time RedHat changes
something there.

Drop your configs as executable .sh files to /etc/profile.d

I use this file here

-rwxr-xr-x    1 root     root          497 Apr  9 13:03 /etc/profile.d/jdk.sh

for setting all Java specific env vars.

#!/bin/sh
export JDK_HOME="/usr/java/j2sdk1.4.1_02"
export JAVA_HOME=$JDK_HOME
       J2EE_HOME="/usr/java/j2sdkee1.3.1"
export PATH="$PATH:$JDK_HOME/bin:$J2EE_HOME/bin"
export CLASSPATH="$J2EE_HOME/lib/j2ee.jar:$J2EE_HOME:/lib/j2eetools.jar"
export CLASSPATH="$CLASSPATH:$JDK_HOME/jre/lib/jsse.jar"

cu,
        boris


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to