tomcat startup script not working at boot

Tapas Mishra mightydreams at gmail.com
Sat Feb 26 04:53:29 UTC 2011


On Sat, Feb 26, 2011 at 12:28 AM, MR ZenWiz <mrzenwiz at gmail.com> wrote:
> On Thu, Feb 24, 2011 at 9:28 PM, Tapas Mishra <mightydreams at gmail.com> wrote:
>> On Thu, Feb 17, 2011 at 5:39 PM, Tapas Mishra <mightydreams at gmail.com> wrote:
>>>
> : [full quote of previous email - not needed]
>>
>> My script has finally worked.
>> For some weired reason the script was not working after reboot and it
>> turns out that this Tomcat was not able to pick JAVA_HOME from .bashrc
>> at the boot time.So when I defined JAVA_HOME in the above script also
>> then it did worked.
>> I do not know why Tomcat could not pick it from .bashrc at boot time
>> because once the thing completely booted then
>> /etc/init.d/tapas-script start
>> was working but to make sure it survives reboots I had to add
>> JAVA_HOME in this script also (though it was defined in .bashrc)
>>
>
> Did you export JAVA_HOME?
Yes I was able to use things without init script.
>
> What .bashrc is this in?  If it is tied to a specific user account,
Not specific  it was in roots bashrc
> that might not work - you may need to edit one of the global bashrc
> files (/etc/bash.bashrc or /etc/bashrc, depending on which one you
> have).
How do you decide when system is booting then whether
/etc/rc5.d/S20tapas-tomcat will execute first or
/etc/bash.bashrc will come first in boot sequence so that JAVA_HOME or
any other variable comes first.
>




More information about the ubuntu-users mailing list