[PLUG] setting env vars before init scripts run??
Kyle Accardi
sandbox at pacifier.com
Sat Dec 27 10:05:03 UTC 2003
Kyle Accardi wrote:
> /etc/profile is only used for login sessions and only for certain
> shells. The system in general won't see what's in there.
>
> You probably want to set your vars in /etc/rc.d/rc.sysinit
> But keeping them in /init.d/tomcat is cleaner.
Better yet, create /etc/sysconfig/tomcat and from /etc/rc.d/init.d/tomcat do
something like,
[ -e /etc/sysconfig/tomcat ] && . /etc/sysconfig/tomcat
which says if tomcat exists, source it
Then add the same line in /etc/profile
This way you only need to maintain the one file.
--
Kyle Accardi
More information about the PLUG
mailing list