Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 3654 invoked from network); 3 May 2002 00:18:13 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 May 2002 00:18:13 -0000 Received: (qmail 4235 invoked by uid 97); 3 May 2002 00:18:02 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 4160 invoked by alias); 3 May 2002 00:18:02 -0000 Delivered-To: jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 4146 invoked by uid 97); 3 May 2002 00:18:02 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 4134 invoked by uid 98); 3 May 2002 00:18:01 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Abraham Fathman" To: "'Tomcat Users List'" Subject: RE: ideas invited Date: Thu, 2 May 2002 20:19:09 -0400 Message-ID: <00be01c1f238$25364ad0$8a56e20a@pcg> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <3CD12E79.1030702@nisports.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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.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 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: For additional commands: Troubles with the list: