You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Following, my script to startup joget service when the linux Ubuntu server 12.04 start.

Hope could be usefull for other people..

Have a nice day.

#!/bin/sh

CATALINA_HOME=/opt/joget/joget-linux-3.0.3

start() {
        echo "Starting Joget Tomcat: "
        export JAVA_OPTS="-XX:MaxPermSize=128m -Xmx512M -Dwflow.home=/opt/joget/joget-linux-3.0.3/wflow/ "
        $CATALINA_HOME/apache-tomcat-6.0.18/bin/catalina.sh run
        echo "done."
}
stop() {
        echo "Shutting down Joget Tomcat: "
        $CATALINA_HOME/apache-tomcat-6.0.18/bin/catalina.sh stop
        echo "done."
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        sleep 10
        start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
esac

exit 0
  • No labels