Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can start and stop the BI Server using the scripted commands start-pentaho.sh and stop-pentaho.sh which are located in /biserver-ce directory by default.  To have the BI Server start automatically during boot time, we need to modify these two scripts a bitand create a startup script called pentaho.  All configuration configurations here was were tested on Ubuntu 8.10 64-bit.

...

/biserver-ce/start-pentaho.sh should read as follows:

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

if [ -e promptuser.sh ]; then
  sh promptuser.sh
  rm promptuser.sh
fi
if [ "$?" = 0 ]; then
  cd data
  sh start_hypersonic.sh &
  cd ..
  cd tomcat/bin
  export CATALINA_OPTS="-Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
  sh startup.sh
fi

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



We will now go to create the appropriate startup script to start and stop the BI Server and administrative console in /etc/init.d

...

To make our new script executable by the system we run the following command

sudo chmod +x /etc/init.d/pentaho

Finally, we add the pentaho script to the system startup and shutdown runlevels by issuing the following command.

sudo update-rc.d pentaho defaults

...