On Fri, 2004-09-24 at 13:25, Richard Lewis wrote:
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?
I don't know how they are implemented; I don't run Debian.
But I'm unclear on your approach. you wrote tomcat.sh which translates init.d-style start/stop arguments to calls into tomcat's start/stop scripts (which internally call catalina.sh with start/stop arguments). Then you're writing another init.d-style script which calls the first. Why write 2 separate scripts?
FWIW, on Gentoo the /etc/init.d/tomcat script just call catalina.sh directly to do the real work:
start-stop-daemon --start --quiet \ --chuid tomcat:tomcat \ --exec ${CATALINA_HOME}/bin/catalina.sh -- ${TOMCAT_START}
-- Martijn