tomcat startup script not working at boot

Tapas Mishra mightydreams at gmail.com
Sat Feb 26 18:13:17 UTC 2011


On Sat, Feb 26, 2011 at 11:03 PM, Nils Kassube <kassube at gmx.net> wrote:

>> Ok.So you mean to say these variables in /etc/bash.bashrc come only
>> to picture when
>> daemons have started all (your boot sequence finished) and you got a
>> console to login and not when the daemons are starting  at boot time.
>
> Yes, correct. The daemons are started by the scripts in /etc/init.d
> invoked by the upstart init process without any login shell.
Here if you can tell who is responsible for bringing the daemons in /etc/init.d
i.e. what transfers control to daemons in /etc/init.d/ (at what ever run level)
I want to know even before any daemon defined in /etc/init.d/ comes to picture
what is that script or process which transfers controls to to the
daemons in /etc/init.d/
> And as the
> file /etc/bash.bashrc is only for login shells the startup scripts don't
> use it and can't see any environment variables you put into that file. I
> can't help you with your tomcat script but maybe someone lese knows
> where $JAVA_HOME is usually set for tomcat. At least I wouldn't expect
> it to come from /etc/bash.bashrc.
>
Don't worry as  I mentioned my Tomcat script is now working fine.
Here I was just curious to know where does bash.bashrc comes to picture.
Which you made clear.




More information about the ubuntu-users mailing list