The Analytics server in SkyVault Analytics can be configured to start and run
automatically.
The Analytics server starts a Tomcat V6 instance. You can choose whether to use the
approach that is listed or to use a standard Tomcat Unix service script. If you use a service
script, check the start-pentaho.sh file to ensure that you are starting
your Tomcat process in the correct directory and that you are using the required parameters; for example, for processing licenses.
-
Create a user named bas that you will use to run the automatic
processes and ensure that this user has write permissions to the
ba-server Analytics installation directory and sub
directories:
sudo useradd -m bas
-
Create an init.d script; for example, in
/etc/init.d/ba-server to run under the bas
user:
#!/bin/bash # chkconfig: 2345 95 20 cd $RA_HOME/ba-server if [ "$1" == "start" ]; then su bas -c ./start-pentaho.sh elif [ "$1" == "stop" ]; then su bas -c ./stop-pentaho.sh fi
-
Make the file executable and enable the script:
chmod +x /etc/init.d/ba-server chkconfig --add ba-server