05-17-2006 03:19 AM
04-17-2012 11:44 PM
Sweet! Let us know how it goes!
elif [ "x$2" = "xjetty" ]; then
if test -x $JETTY_SCRIPT; then
$JETTY_SCRIPT start
JETTY_ERROR=$?
fi
and else
if test -x $MYSQL_SCRIPT; then
$MYSQL_SCRIPT start
MYSQL_ERROR=$?
sleep 5
fi
I added elif [ "x$2" = "xjpda" ]; then
$POSTGRESQL_SCRIPT start
POSTGRESQL_ERROR=$?
sleep 5
$TOMCAT_SCRIPT jpda
TOMCAT_ERROR=$?
$OPENOFFICE_SCRIPT start
OPENOFFICE_ERROR=$?
Edit: just realized, this bit may be different depending on the environment, but essentially just look at the other if…fi statements around it and copy in the ones that apply to you. I know that with a bit of work I could have included the test -x lines necessary to automatically run whatever is installed but this is all I really needed for our install.is_tomcat_running() {
get_tomcat_pid
is_service_running $PID
RUNNING=$?
if [ $RUNNING -eq 0 ]; then
TOMCAT_STATUS="tomcat not running"
else
TOMCAT_STATUS="tomcat already running"
fi
return $RUNNING
}
andif [ "x$1" = "xstart" ]; then
start_tomcat
sleep 2
I addedjpda_tomcat() {
export JAVA_OPTS="-XX:MaxPermSize=512m -Xms128m -Xmx1024m -XX:-DisableExplicitGC -Dalfresco.home=/opt/alfresco-4.0.d -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true"
export JAVA_HOME=$JRE_HOME
$TOMCAT_BINDIR/catalina.sh jpda start
}
and between
if [ "x$1" = "xstart" ]; then
start_tomcat
sleep 2
andelif [ "x$1" = "xdaemon" ]; then
daemon_tomcat
I added elif [ "x$1" = "xjpda" ]; then
jpda_tomcat
sleep 2
sudo ./alfresco.sh start jpda
to start alfresco in debug mode.04-18-2012 09:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.