Changes between Version 3 and Version 4 of WikiStart


Ignore:
Timestamp:
Apr 3, 2010, 10:36:05 AM (16 years ago)
Author:
huub
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v3 v4  
    99We use the Pentaho Business Intelligence suite (www.pentaho.org) on FreeBSD. The book "Pentaho Solutions" of Roland Bouwman and Jos van Dongen comes in handy.
    1010For installation on FreeBSD the installation procedure has some deviations from the Linux install described in the book. Installation directory is /usr/local/pentaho. For automatic startup we use the scripts /usr/local/etc/rc.d/pentaho and /usr/local/bin/pentaho.
     11<p>
     12The rc.d/pentaho script:
    1113{{{
     14#!/bin/sh
     15#
     16# PROVIDE: pentaho
     17# Configuration settings for pentaho in /etc/rc.conf
     18#
     19. /etc/rc.subr
     20name="pentaho"
     21rcvar=`set_rcvar`
     22load_rc_config "${name}"
     23pentaho_enable="${pentaho_enable:-"NO"}"
    1224
     25start_pentaho () {
     26        echo "Starting ${name}"
     27        /usr/local/bin/pentaho >> /var/log/pentaho.log 2>&1
     28}
     29
     30stop_pentaho () {
     31        echo "Stopping ${name}"
     32        # XXX This goes horribly wrong if we make brew another pot of Java.
     33        killall java
     34}
     35
     36start_cmd="start_pentaho"
     37stop_cmd="stop_pentaho"
     38run_rc_command "$1"
     39}}}
    1340--------------------------------
     41The bin/pentaho script:
     42{{{
     43#!/bin/sh
    1444
     45PATH=$PATH:/usr/local/bin:/usr/local/sbin
     46
     47# go to the pentaho home
     48cd /usr/local/pentaho/biserver-ce
     49
     50# set up command for pentaho user, set java environment
     51su -m pentaho -c 'env JAVA_HOME="/usr/local/diablo-jre1.6.0" /usr/local/pentaho/biserver-ce/start-pentaho.sh'
     52}}}
     53----------------------------------------------
    1554
    1655