Re: Start and stop Tomcat + Cron

2005-03-17 Thread Ben Kim
1. Which platform and crond are you on? Is the crontab format correct for your environment? 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh vs. 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh 2. You may want to see if shutdown.sh works as root. 3. You can also try 00 22 * * * /PATH/TO/

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Cédric Buschini
1/ Sorry having replied to an unrelated message. 2/ Yes Tomcat always run as root. 3/ I am newbie, so I will get info about 'wapper script'. 4/ uhmmm a newbie question : Where can I find these logs . sorry :s QM wrote: On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote: : I'd like

Re: Start and stop Tomcat + Cron

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote: : I'd like to stop and start my tomcat using cron so I added this in the : root's crontab and /etc/crontab : : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh : 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh 1/ please post a *ne

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Lionel Farbos
Yes and it depends on your crontab version. In my version, the system-wide crontab seems like this : 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh and the user-wide crontab seems like this : 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh ... but are not executed by the same user. On Thu, 17 Mar 2005

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Cédric Buschini
yes everything is fine. all vars have been export. I've done a JAVA_HOME=path/to/java then export JAVA_HOME. Same thing for CATALINA_HOME Robert r. Sanders wrote: Are your JAVA_HOME and other vars defined in a global context? Other than that I don't really know. Cédric Buschini wrote: Hi

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Robert r. Sanders
Are your JAVA_HOME and other vars defined in a global context? Other than that I don't really know. Cédric Buschini wrote: Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * r

Start and stop Tomcat + Cron

2005-03-17 Thread Cédric Buschini
Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh but it does work :s Any got ideas ??? Thk Cedric -