You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pablo Augusto <em...@pabloaugusto.com> on 2009/04/25 17:48:16 UTC

[SOLVED] Start tomcat at boot - debian lenny

Hello,

it was done, but not worked.
the problem was that etc/profile was loading after /etc/init.d/tomcat

so the java variables was not exportes yet,
to workarround i put all variavles and paths at /etc/init.d/tomcat

now its working


thanks for your reply
On Sat, Apr 25, 2009 at 9:13 AM, André Warnier <aw...@ice-sa.com> wrote:

> Pablo Augusto wrote:
>
>> Hello,
>>
>> im having some problems, i just try ALL but tomcat 5.5.25 do not starts
>> o boot.
>>
>> Please need urgent help!
>>
>> Can anyone send me a startup script and directions how to startup tomcat
>> at
>> boot on debian???
>>
>>  1) read : http://httpd.apache.org/userslist.html
> 2) read : http://www.catb.org/~esr/faqs/smart-questions.html<http://www.catb.org/%7Eesr/faqs/smart-questions.html>
>
> 3) check if you have a link in /etc/rc2.d point to /etc/init.d/tomcatx.x
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: [SOLVED] Start tomcat at boot - debian lenny

Posted by André Warnier <aw...@ice-sa.com>.
Pablo Augusto wrote:
> Hello,
> 
> it was done, but not worked.
> the problem was that etc/profile was loading after /etc/init.d/tomcat
> 
> so the java variables was not exportes yet,
> to workarround i put all variavles and paths at /etc/init.d/tomcat
> 
I'm glad it worked for you.
But the /etc/init.d/tomcat is probably not the best place.

If you look in /etc/init.d/tomcat, you'll see lines like

NAME=tomcat5.5
...
DEFAULT=/etc/default/$NAME
...
# overwrite settings from default file
if [ -f "$DEFAULT" ]; then
	. "$DEFAULT"
fi

Basically what it means, is that there is a file /etc/default/tomcat5.5 
which is executed by the /etc/init.d/tomcat5.5 script, at boot and 
whenever your start Tomcat.
In that file is probably where you should set your Java parameters.

It will not change anything right now, but it will make a difference the 
day that you update Tomcat on your system.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org