Below is our init.d script which we use for most customers/consumers. Please be aware this has been tested and modified for [Pentaho BI Server 3.0 CE].
Please create the file in /etc/init.d/pentaho
/etc/init.d/pentaho
#!/bin/sh -e # Script provided by comdivision consulting GmbH - Yves Sandfort - Last Updated 2009-07-19 16:25 CET # for updates and notes please visit: http://www.comdivision-consulting.com/confluence//display/cdconstech/Pentaho+BI+Server+Linux+startup # # Please check the section below to have the folders changed according to your config. # ### BEGIN INIT INFO # Provides: start-pentaho stop-pentaho # Required-Start: networking # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Description: Pentaho BI Platform ### END INIT INFO export BISERVER_HOME=/opt/biserver-ce export JAVA_HOME="/usr/java/latest" export JRE_HOME="/usr/java/latest/jre" case "$1" in 'start') cd $BISERVER_HOME ./start-pentaho.sh cd $BISERVER_HOME/../administration-console ./start.sh ;; 'stop') cd $BISERVER_HOME ./stop-pentaho.sh cd $BISERVER_HOME/../administration-console ./stop.sh ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0
After the file is created change it's mode with:
chmod a+x /etc/init.d/pentaho
Now add it to the system for auto startup:
cd /etc/init.d chkconfig --add pentaho