Hi,
I'm new with joget and with tomcat. I'm trying (succefully to at this moment) and I need a init script for ubuntu 11.10 server. I'm try differents alternatives without success.
Thank's a lot
Sergio
Hi,
I'm new with joget and with tomcat. I'm trying (succefully to at this moment) and I need a init script for ubuntu 11.10 server. I'm try differents alternatives without success.
Thank's a lot
Sergio
1 Comment
William Votta
This worked for me:
#!/bin/bash # # Init file for Joget # # chkconfig: 2345 55 25 # description: Joget Tomcat server # # Source function library. . /etc/init.d/functions CATALINA_HOME=/opt/joget/apache-tomcat-6.0.18 # Adjust to Joget install dir start() { echo "Starting Joget Tomcat: " export JAVA_OPTS="-XX:MaxPermSize=128m -Xmx512M -Dwflow.home=./wflow/ " $CATALINA_HOME/bin/catalina.sh start echo "done." } stop() { echo "Shutting down Joget Tomcat: " $CATALINA_HOME/bin/catalina.sh stop echo "done." } case "$1" in start) start ;; stop) stop ;; restart) stop sleep 10 #echo "Hard killing any remaining threads.." #kill -9 `cat $CATALINA_HOME/work/catalina.pid` start ;; *) echo "Usage: $0 {start|stop|restart}" esac exit 0Then (cuz I use CentOS) I just did a: