You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Kavanagh <da...@dotech.com> on 2002/05/02 13:26:16 UTC
Re: ideas invited
What I've done is to insert some commands at the top of tomcat.sh, then
link it from /etc/rc2.d/S99tomcat to <tomcathome>/bin/tomcat.sh (if on
solaris).
on Linux, I put it in /etc/rc5.d
David
# Lalit Nagpal # wrote:
>hi,
>
>i want tomcat 4 to startup up auto whenever the
>machine is rebooted so i have put the entry
><tomcat_path>/startup.sh. As suggested by some i have
>set the java path and tomcat home also in rc.local
>file before running the startup.sh file. still it does
>not seem to work. any bright ideas on this.
>
>thanx a lot
>
>
>
>
># Lalit Nagpal #
>
>
>---------------------------------
>Do You Yahoo!?
>Yahoo! Health - your guide to health and wellness
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: ideas invited
Posted by Abraham Fathman <af...@one.net>.
I created a file in tomcat/bin/ called setenv.sh the catalina script
already calls it.
The advantage of doing it this way is that you aren't customizing any of
tomcat's scripts. So when there is a new version you can just drop the
version in!
I placed a line in it like:
export JAVA_HOME=/opt/j2sdk1.4.0/
Then I created a symbolic link from bin/catalina.sh to
/etc/rc.d/rc.catalina then I added rc.catalina start to rc.local.
Hope that helps...
-----Original Message-----
From: David Cassidy [mailto:dcassidy@nisports.com]
Sent: Thursday, May 02, 2002 8:18 AM
To: Tomcat Users List
Subject: Re: ideas invited
following in the standard 'and here's one I made earlier' line
here's one that works - really rather well !
Install it in /etc/rc.d/init.d
then ( if you have linux ) run
chkconfig --add tomcat
or if you use some other unix varient see what run level you are running
at
( have a look in inittab )
and then cd to /etc/rc.d/rc<x>.d
ln -s /etc/rc.d/init.d/tomcat .
if you don't have the /etc/rc.d directory you can miss that bit out ...
this will run Tomcat as the user tomcat - so you might want to add that
user or change it ...
Let us know....
David Cassidy
David Kavanagh wrote:
> Well, it sounds like you are running on some flavor of unix. I've set
> up
>
> tomcat servers on solaris and linux. For Solaris you can put the
> startup
>
> script in /etc/rc2.d or /etc/rc3.d. If you run on Linux. I found you
> need to put it in /etc/rc5.d. If you don't use linux, don't worry
> about rc5.d.
>
> The commands I've put in the top of the tomcat.sh are to set
> environment
>
> variables. An alternative would be write your own script that sets the
> variables, then calls tomcat.sh (forwarding the commandline
> arguments). That way, tomcat.sh won't be altered. Come to think of it,
> I'll probably
>
> start doing this myself...
>
> David
>
> # Lalit Nagpal # wrote:
>
>> so sorry,
>> i did not understand what u meant ... where did rc5.d come from
>> David Kavanagh <da...@dotech.com> wrote: What I've done is to insert
>
> some commands at the top of tomcat.sh, then
>
>> link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on solaris).
>> on Linux, I put it in /etc/rc5.d
>>
>> David
>>
>> # Lalit Nagpal # wrote:
>>
>>> hi,
>>>
>>> i want tomcat 4 to startup up auto whenever the
>>> machine is rebooted so i have put the entry
>>> /startup.sh. As suggested by some i have
>>> set the java path and tomcat home also in rc.local
>>> file before running the startup.sh file. still it does
>>> not seem to work. any bright ideas on this.
>>>
>>> thanx a lot
>>>
>>>
>>>
>>>
>>> # Lalit Nagpal #
>>>
>>>
>>> ---------------------------------
>>> Do You Yahoo!?
>>> Yahoo! Health - your guide to health and wellness
>>>
>>
>>
>>
>> --
>> To unsubscribe: For additional commands: Troubles with the list:
>>
>> # Lalit Nagpal #
>>
>>
>> ---------------------------------
>> Do You Yahoo!?
>> Yahoo! Health - your guide to health and wellness
>>
>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: ideas invited
Posted by David Cassidy <dc...@nisports.com>.
following in the standard 'and here's one I made earlier' line
here's one that works - really rather well !
Install it in /etc/rc.d/init.d
then ( if you have linux ) run
chkconfig --add tomcat
or if you use some other unix varient see what run level you are running at
( have a look in inittab )
and then cd to /etc/rc.d/rc<x>.d
ln -s /etc/rc.d/init.d/tomcat .
if you don't have the /etc/rc.d directory you can miss that bit out ...
this will run Tomcat as the user tomcat - so you might want to add that
user or change it ...
Let us know....
David Cassidy
David Kavanagh wrote:
> Well, it sounds like you are running on some flavor of unix. I've set up
>
> tomcat servers on solaris and linux. For Solaris you can put the startup
>
> script in /etc/rc2.d or /etc/rc3.d. If you run on Linux. I found you
> need to put it in /etc/rc5.d. If you don't use linux, don't worry
> about rc5.d.
>
> The commands I've put in the top of the tomcat.sh are to set environment
>
> variables. An alternative would be write your own script that sets the
> variables, then calls tomcat.sh (forwarding the commandline
> arguments). That way, tomcat.sh won't be altered. Come to think of it,
> I'll probably
>
> start doing this myself...
>
> David
>
> # Lalit Nagpal # wrote:
>
>> so sorry,
>> i did not understand what u meant ... where did rc5.d come from
>> David Kavanagh <da...@dotech.com> wrote: What I've done is to insert
>
> some commands at the top of tomcat.sh, then
>
>> link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on solaris).
>> on Linux, I put it in /etc/rc5.d
>>
>> David
>>
>> # Lalit Nagpal # wrote:
>>
>>> hi,
>>>
>>> i want tomcat 4 to startup up auto whenever the
>>> machine is rebooted so i have put the entry
>>> /startup.sh. As suggested by some i have
>>> set the java path and tomcat home also in rc.local
>>> file before running the startup.sh file. still it does
>>> not seem to work. any bright ideas on this.
>>>
>>> thanx a lot
>>>
>>>
>>>
>>>
>>> # Lalit Nagpal #
>>>
>>>
>>> ---------------------------------
>>> Do You Yahoo!?
>>> Yahoo! Health - your guide to health and wellness
>>>
>>
>>
>>
>> --
>> To unsubscribe: For additional commands: Troubles with the list:
>>
>> # Lalit Nagpal #
>>
>>
>> ---------------------------------
>> Do You Yahoo!?
>> Yahoo! Health - your guide to health and wellness
>>
>
>
Re: ideas invited
Posted by David Kavanagh <da...@dotech.com>.
Well, it sounds like you are running on some flavor of unix. I've set up
tomcat servers on solaris and linux. For Solaris you can put the startup
script in /etc/rc2.d or /etc/rc3.d. If you run on Linux. I found you
need to put it in /etc/rc5.d. If you don't use linux, don't worry about
rc5.d.
The commands I've put in the top of the tomcat.sh are to set environment
variables. An alternative would be write your own script that sets the
variables, then calls tomcat.sh (forwarding the commandline arguments).
That way, tomcat.sh won't be altered. Come to think of it, I'll probably
start doing this myself...
David
# Lalit Nagpal # wrote:
> so sorry,
>i did not understand what u meant ... where did rc5.d come from
> David Kavanagh <da...@dotech.com> wrote: What I've done is to insert some commands at the top of tomcat.sh, then
>link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on
>solaris).
>on Linux, I put it in /etc/rc5.d
>
>David
>
># Lalit Nagpal # wrote:
>
>>hi,
>>
>>i want tomcat 4 to startup up auto whenever the
>>machine is rebooted so i have put the entry
>>/startup.sh. As suggested by some i have
>>set the java path and tomcat home also in rc.local
>>file before running the startup.sh file. still it does
>>not seem to work. any bright ideas on this.
>>
>>thanx a lot
>>
>>
>>
>>
>># Lalit Nagpal #
>>
>>
>>---------------------------------
>>Do You Yahoo!?
>>Yahoo! Health - your guide to health and wellness
>>
>
>
>
>--
>To unsubscribe:
>For additional commands:
>Troubles with the list:
>
>
># Lalit Nagpal #
>
>
>---------------------------------
>Do You Yahoo!?
>Yahoo! Health - your guide to health and wellness
>
Re: ideas invited
Posted by # Lalit Nagpal # <la...@yahoo.com>.
so sorry,
i did not understand what u meant ... where did rc5.d come from
David Kavanagh <da...@dotech.com> wrote: What I've done is to insert some commands at the top of tomcat.sh, then
link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on
solaris).
on Linux, I put it in /etc/rc5.d
David
# Lalit Nagpal # wrote:
>hi,
>
>i want tomcat 4 to startup up auto whenever the
>machine is rebooted so i have put the entry
>/startup.sh. As suggested by some i have
>set the java path and tomcat home also in rc.local
>file before running the startup.sh file. still it does
>not seem to work. any bright ideas on this.
>
>thanx a lot
>
>
>
>
># Lalit Nagpal #
>
>
>---------------------------------
>Do You Yahoo!?
>Yahoo! Health - your guide to health and wellness
>
--
To unsubscribe:
For additional commands:
Troubles with the list:
# Lalit Nagpal #
---------------------------------
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness