On Friday, Sep 24, 2004, at 13:08 Europe/London, Martijn Koster wrote:
On Fri, 2004-09-24 at 12:59, Richard Lewis wrote:
Hello ALUG,
I'm trying to write an init script to get Tomcat (4.1) to start at boot. (On Debian).
I've created a file: /var/webapps/tomcat/bin/tomcat.sh =====================================
export TOMCAT_BIN=/var/webapps/tomcat/bin
Try adding:
#!/bin/sh
D'oh!
OK, thanks for that - it now picks up tomcat.sh and the daemon starts fine.
I've just found one more problem though: it won't stop!!
# /etc/init.d/tomcat stop doesn't return any errors but I had a look and found that the directory /var/run/tomcat was empty; it seems its left no process id file. Is this why it can't stop?
Also, # ps -Al inclues: 0 S 103 5156 1 4 85 0 - 77414 schedu pts/0 00:00:21 java
which must be the tomcat process. Might it be confused because the process is called 'java' not 'tomcat'?
Thanks for any help.
Cheers, Richard