Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61822 - tomcat won't start when using TOMCAT_START="start -security"
Summary: tomcat won't start when using TOMCAT_START="start -security"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-26 08:54 UTC by Jaco Kroon
Modified: 2004-08-26 11:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2004-08-26 08:54:54 UTC
This is due to the way start-stop daemon handles paramenters.  The following patche to /etc/init.d/tomcat5 resoves the issue:

--- tomcat5.orig        2004-08-26 17:09:03.022354214 +0200
+++ tomcat5     2004-08-26 17:09:05.016063547 +0200
@@ -10,14 +10,14 @@
 
 start()        {
        ebegin "Starting Tomcat"
-       start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_START}
+       start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh -- ${TOMCAT_START}
        sleep 5
        eend $?
 }
 
 stop() {
        ebegin "Stopping Tomcat"
-       start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_STOP}
+       start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh -- ${TOMCAT_STOP}
        sleep 5
        eend $?
 }


Please apply.

Reproducible: Always
Steps to Reproduce:
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-26 11:20:11 UTC
Thanks, fixed
Comment 2 Jaco Kroon 2004-08-26 11:34:26 UTC
Pleasure, and thanks for the quick response.  Great work.