If you can do it manually, from a log in session, but not automatically from
startup or from cron, I'm 99% sure it's because environment variables like
JAVA_HOME and CATALINA_HOME are not being set for the startup and cron
environments. Without those, you won't get anything. They're probably
I had a similar problem, and changed catalina.sh to do this at the
start:
source /etc/profile
This was where I was setting CATALINA_HOME, and JAVA_HOME. When the
script got run at startup, those vars were not yet set...
Larry
[EMAIL PROTECTED] 01/22/03 10:20 AM
Has anybody had a problem with
Howdy,
We have some tomcat instances that restart nightly from a crontab,
without a problem. They're all tomcat 4.0.6-LE on Solaris 2.8. None
use apache as the front end. None run as root. Each runs as its own
user, and the restart job is in that user's crontab. We've had no
problems with
I suspect it has something to do with your environmental variables:
Quite likely the java_home catalina_home has not been set at the time
the script executes. When doing it from the console, as you are already
logged on, it will work fine. You could try to export the variables just
before running
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:31 PM
To: Tomcat Users List
Subject: RE: tomcat not starting after reboot or from cron
Howdy,
We have some tomcat instances that restart nightly from a crontab,
without a problem
, January 22, 2003 12:30 PM
To: 'Tomcat Users List'
Subject: RE: tomcat not starting after reboot or from cron
If you can do it manually, from a log in session, but not automatically from
startup or from cron, I'm 99% sure it's because environment variables like
JAVA_HOME and CATALINA_HOME
, January 22, 2003 12:37 PM
To: 'Tomcat Users List'
Subject: RE: tomcat not starting after reboot or from cron
I was actually wondering about that concerning the startup environment, but
I didn't think it would be an issue for cron since it was the root crontab.
I'll add it to the script and see
Howdy,
I can't share the exact script due to intellectual property law issues
;) But it's trivial, basically doing:
export CATALINA_HOME=/foo/bar
$CATALINA_HOME/bin/shutdown.sh
sleep 60
$CATALINA_HOME/bin/startup.sh
That's it.
One of the problems I am worried about
is that Tomcat isn't
this fixed.
Ricky
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 1:03 PM
To: Tomcat Users List
Subject: RE: tomcat not starting after reboot or from cron
Howdy,
I can't share the exact script due to intellectual property law issues
Leung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:36 PM
To: Tomcat Users List
Subject: RE: tomcat not starting after reboot or from cron
Do you mind sharing your Tomcat restart script with us? I want to do the
same but perhaps on a weekly basis. One of the problems I am
If you can do it manually, from a log in session, but not automatically
from
startup or from cron, I'm 99% sure it's because environment variables like
JAVA_HOME and CATALINA_HOME are not being set for the startup and cron
environments. Without those, you won't get anything. They're probably
in the open source world, as well as Solaris.
HTH
John
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 3:23 PM
To: 'Tomcat Users List'
Subject: RE: tomcat not starting after reboot or from cron
If you can do it manually, from a log
12 matches
Mail list logo