Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Modified to include instructions on how to have the startup scripts fire as background processes

...

Next, your /biserver-ce/stop-pentaho.sh should read as follows:

Code Block
#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  Pentaho Stop Script                                                     ##
##                                                                          ##
### ====================================================================== ###

cd data
sh stop_hypersonic.sh &
cd ..
cd tomcat/bin
sh shutdown.sh

...

Code Block
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: start-pentaho stop-pentaho
# Required-Start: networking mysql
# Required-Stop: mysql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Pentaho BI Platform
### END INIT INFO
export JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun"
export JRE_HOME="/usr/lib/jvm/java-1.5.0-sun/jre"

case "$1" in
'start')
cd /biserver-ce
/biserver-ce/start-pentaho.sh
cd /administration-console
/administration-console/start.sh
;;
'stop')
cd /biserver-ce
/biserver-ce/stop-pentaho.sh
cd /administration-console
/administration-console/stop.sh
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0

Please note:

If you would like the scripts to run as a background task when the server starts up instead of launching in a terminal window, append an "&" to the end of the script name.  So, in the above code:

Code Block

 cd /biserver-ce
/biserver-ce/start-pentaho.sh&
cd /administration-console
/administration-console/start.sh&


Now we need to make pentaho executable and add it to the startup and shutdown runlevels.

...