Running Scripts at Boot, via Cron etc
I have a script that stops my Tomcat server, restarts it, and restarts Apache.
It's called /_tomcat_all, and I can run it fine from the command line (as root).
All that's in it is:
$CATALINA_HOME/bin/./shutdown.sh
$CATALINA_HOME/bin/./startup.sh
/usr/local/apache2/bin/./apachectl restart
I tried to get cron to run this daily, but I get the error message:
/_tomcat_all: /bin/./shutdown.sh: No such file or directory
/_tomcat_all: /bin/./startup.sh: No such file or directory
I have the same sort of errors when I tried to get a script to run during boot, via /etc/rc.d/init.d and the default runlevel /etc/rc.d/rc3.d.
Can anone suggest what might be wrong with this please?
MTIA!
Max Hugen
ustralia
|