tomcat startup script not working at boot
Tapas Mishra
mightydreams at gmail.com
Fri Feb 25 17:20:12 UTC 2011
On Fri, Feb 25, 2011 at 8:35 PM, Colin Law <clanlaw at googlemail.com> wrote:
> On 25 February 2011 14:57, Tapas Mishra <mightydreams at gmail.com> wrote:
>> On Fri, Feb 25, 2011 at 2:51 PM, Colin Law <clanlaw at googlemail.com> wrote:
>>> 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)
>>>
>> root I was always doing it from there and still from there.
>
> Is root 'logged in' at the time in the boot operation where the script
> is run, in other words is root's .bashrc available at that time, or is
> it just that everything is run with root's permissions at that time?
>
I do not know how to verify that?
More information about the ubuntu-users
mailing list