Re: Restart TC with cron/sh

2008-07-16 Thread Dan Armbrust
On Mon, Jul 7, 2008 at 8:43 AM, Piller Sébastien [EMAIL PROTECTED] wrote: Hello, I have my application in production for a month now. I've some problem of memory leak that force me to restart TC each few days. Or, you know, you could fix the actual problem - the memory leak. Go get yourself

Re: Restart TC with cron/sh

2008-07-08 Thread Alex Mestiashvili
Piller Sébastien wrote: Hello, I have my application in production for a month now. I've some problem of memory leak that force me to restart TC each few days. I'm trying to automate this operation with a cron that runs a *.sh file. But I don't know how what to write in it. Actually, I've

Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Hello, I have my application in production for a month now. I've some problem of memory leak that force me to restart TC each few days. I'm trying to automate this operation with a cron that runs a *.sh file. But I don't know how what to write in it. Actually, I've this:

Re: Restart TC with cron/sh

2008-07-07 Thread Edoardo Panfili
Piller Sébastien ha scritto: Hello, I have my application in production for a month now. I've some problem of memory leak that force me to restart TC each few days. I'm trying to automate this operation with a cron that runs a *.sh file. But I don't know how what to write in it. Actually,

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Sorry, I've no tomcat in /etc/init.d/. Edoardo Panfili a écrit : If you are using debian (and other linux versions)maybe /etc/init.d/tomcat restart Edoardo - To start a new topic, e-mail: users@tomcat.apache.org To

Re: Restart TC with cron/sh

2008-07-07 Thread Edoardo Panfili
Piller Sébastien ha scritto: Sorry, I've no tomcat in /etc/init.d/. Are you using linux? if so, what distribution? How do you start Tomcat at startup time? edoardo Edoardo Panfili a écrit : If you are using debian (and other linux versions)maybe /etc/init.d/tomcat restart Edoardo

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Yes, we're running Linux. I'm not sure what's my distrib. I'm using our dedicated hosting, administrated via ssh. When I need to start tomcat, I just use the startup.sh script (the one in /bin/). Same to shutdown: use shutdown.sh. It's possible to restart TC with a .sh, isn't it? Edoardo

Re: Restart TC with cron/sh

2008-07-07 Thread Felix Schumacher
On Mon, July 7, 2008 4:11 pm, Piller Sébastien wrote: Yes, we're running Linux. I'm not sure what's my distrib. I'm using our dedicated hosting, administrated via ssh. When I need to start tomcat, I just use the startup.sh script (the one in /bin/). Same to shutdown: use shutdown.sh. Have you

Re: Restart TC with cron/sh

2008-07-07 Thread Andrew Miehs
On 07/07/2008, at 4:11 PM, Piller Sébastien wrote: Yes, we're running Linux. I'm not sure what's my distrib. I'm using our dedicated hosting, administrated via ssh. When I need to start tomcat, I just use the startup.sh script (the one in /bin/). Same to shutdown: use shutdown.sh. It's

Re: Restart TC with cron/sh

2008-07-07 Thread David Smith
Check to be sure the proper environment variables are set when the script runs. When I read the error message, I understand the error to be more like I can't find rt.sh from line 1 of /usr/local/tomcat/bin/shutdown.sh. You can test to confirm that suspicion by just dropping in an echo line

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Felix, Felix Schumacher a écrit : Have you transferred the restart.sh from a windows box? Maybe you have dos/windows line breaks, which are CR+LF. Such a combination can kill a innocent looking shell script. thank you, that was exactly what was wrong. I was using CR/LF-windows style

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
The last answer of F. Schumacher was the right. I was messing with David Smith a écrit : Check to be sure the proper environment variables are set when the script runs. When I read the error message, I understand the error to be more like I can't find rt.sh from line 1 of