well it should work but if you can avoid it, don't run a program as root. also my script has a function to wait for the server to successfully stop before the next start. i had problems with machines shutting down and killing tomcat before it did all of it's clean up (which may be important, depending on which servlets you use).
michael -----Urspr�ngliche Nachricht----- Von: Nelson Yip [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 10. J�nner 2002 20:52 An: 'Tomcat Users List' Betreff: RE: tomcat startup script (AW: Auto starting Tomcat during boot?) I was wondering why you can't just add a symbolic link in the rc3.d point to Catalina.sh, startup.sh or shutdown.sh. I tried linking those files but it still doesn't work after I restarted the server? But I will give your script a try. Thanks Nelson -----Original Message----- From: Michael Weissenbacher [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 2:41 PM To: 'Tomcat Users List' Subject: tomcat startup script (AW: Auto starting Tomcat during boot?) i've already mailed this before. this is a tomcat startup/shutdown/control script. place it in /etc/init.d and place a symbolic link S99tomcat to it under /etc/inid.d/rc3.d (and probably rc5.d if you start graphical) for startup and a symbolic link K99tomcat for stopping tomcat on shutdown. don't forget to set it executable. edit the variables in the beginning of the script to match your path and your port settings. specify a user under which tomcat will be started (normally user tomcat). then insert the line: START_TOMCAT="yes" in /etc/rc.config (note: script tested only with SuSE Linux 7.x but should work elsewhere without problems) have fun! michael -----Urspr�ngliche Nachricht----- Von: Nelson Yip [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 10. J�nner 2002 19:51 An: [EMAIL PROTECTED] Betreff: Auto starting Tomcat during boot? Hi, I've just installed Tomcat 4.0.1 on my Red Hat 7.2 Linux box. Everything works fine but Tomcat won't auto start after a reboot. I added a symbolic link to the Catalina.sh file in my rc3.d level. ln -s /usr/local/bin/tomcat/bin/Catalina.sh S99tomcat Am I doing something wrong? Thanks Nelson -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
