tomcat startup script not working at boot

Colin Law clanlaw at googlemail.com
Fri Feb 25 09:21:11 UTC 2011


On 25 February 2011 05:28, Tapas Mishra <mightydreams at gmail.com> wrote:
>...
> 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.

Which user's .bashrc did you put JAVA_HOME in?

Colin

> 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)




More information about the ubuntu-users mailing list