Thanks VERY much Chad... your script was a winner for me.  It's a real relief to have 
Tomcat starting automatically finally.

Regards
/j-p.


On Fri, 3 May 2002, chad kellerman wrote:

> j-p,
> 
>     Depending on the location of everything.  apachectl, tomcat etc.  You can try 
>this one.
> 
> 
> #!/bin/sh
> #
> case "$1" in
> start)
>         echo -n "Starting TomCat 4 and httpd:"
>         su - tc -c "/usr/local/tomcat/bin/startup.sh"
>         sleep 10 
>       /etc/httpd/bin/apachectl start
>       /usr/local/apache-ssl/bin/apachectl start
>       ;;
> restart)
>       /etc/httpd/bin/apachectl stop
>       /usr/local/apache-ssl/bin/apachectl stop
>       echo -n "Stopping TomCat 4 and httpd:"
>       su - tc -c "/usr/local/tomcat/bin/shutdown.sh"
>       sleep 10
>         echo -n "Restarting TomCat 4 and httpd:"
>         su - tc -c "/usr/local/tomcat/bin/startup.sh"
>         sleep 10
>         /etc/httpd/bin/apachectl start
>         /usr/local/apache-ssl/bin/apachectl start
>       ;;
> stop)
>         /etc/httpd/bin/apachectl stop
>       /usr/local/apache-ssl/bin/apachectl stop
>         echo -n "Stopping TomCat 4 and httpd:"
>         su - tc -c "/usr/local/tomcat/bin/shutdown.sh"
>         sleep 10
>       ;;
> *)
>       echo "Usage: $0 {start|stop|restart}"
>       exit 1
>       ;;
> esac
> 
> 
> -chad
> 
> ps.  don't forget to link it in rc3.d and rc6.d  
> 
> 
> 
> 
> 
> On Fri, 3 May 2002 13:35:24 -0200 (CEST)
> john-paul delaney <[EMAIL PROTECTED]> wrote:
> 
> > 
> > Hello list...
> > 
> > I've setup tomcat4.01 on RH7.0, on jdk1.3.  In order to load tomcat successfully, 
>I need to run the following command: "ulimit -s 2048".  I'd also like to load Tomcat 
>as user tc.
> > Does anyone have a suitable script that I can run in /etc/rc.d/init.d/ on startup 
>- or at least send me a pointer to pertinent examples? I've not been successful with 
>my own attempts so far.
> > 
> > thanks
> > /j-p.
> > 
> > 
> > -----------------------
> >  JUSTATEST Art Online
> >   www.justatest.com
> > 
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > 
> 


-----------------------
 JUSTATEST Art Online
  www.justatest.com




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to