Changes between Version 3 and Version 4 of WikiStart
- Timestamp:
- Apr 3, 2010, 10:36:05 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v3 v4 9 9 We 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. 10 10 For 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> 12 The rc.d/pentaho script: 11 13 {{{ 14 #!/bin/sh 15 # 16 # PROVIDE: pentaho 17 # Configuration settings for pentaho in /etc/rc.conf 18 # 19 . /etc/rc.subr 20 name="pentaho" 21 rcvar=`set_rcvar` 22 load_rc_config "${name}" 23 pentaho_enable="${pentaho_enable:-"NO"}" 12 24 25 start_pentaho () { 26 echo "Starting ${name}" 27 /usr/local/bin/pentaho >> /var/log/pentaho.log 2>&1 28 } 29 30 stop_pentaho () { 31 echo "Stopping ${name}" 32 # XXX This goes horribly wrong if we make brew another pot of Java. 33 killall java 34 } 35 36 start_cmd="start_pentaho" 37 stop_cmd="stop_pentaho" 38 run_rc_command "$1" 39 }}} 13 40 -------------------------------- 41 The bin/pentaho script: 42 {{{ 43 #!/bin/sh 14 44 45 PATH=$PATH:/usr/local/bin:/usr/local/sbin 46 47 # go to the pentaho home 48 cd /usr/local/pentaho/biserver-ce 49 50 # set up command for pentaho user, set java environment 51 su -m pentaho -c 'env JAVA_HOME="/usr/local/diablo-jre1.6.0" /usr/local/pentaho/biserver-ce/start-pentaho.sh' 52 }}} 53 ---------------------------------------------- 15 54 16 55
