Steps to setup Pentaho+ to start on boot
Below are the steps to start Pentaho+ BA Server during system boot
Step1: Create a”.sh” file in any location {example:vi pentaho_autostart.sh}
Step2: Open “.sh” file and insert the below command, ‘path to‘ in below command refers to the Pentaho+ directory path
su - username -c "path to ./ctlscript.sh start postgresql" path to ./ctlscript.sh start
example:-
to start postgresql insert
{su - dev020 -c "/home/dev020/Pentaho/./ctlscript.sh start postgresql"}
to start pentaho server insert
{/home/dev020/Pentaho/./ctlscript.sh
Step3: After the above commands are inserted save the”.sh”file and give executive permission.
Step4: Create a cron job by entering crontab -e in the terminal, which will open a new editor window, then insert
“@reboot sh path to pentaho_autostart.sh” in the editor and save it.
path to in above command refers to the path where the .sh(pentaho_autostart.sh) file was created
Example:
{@reboot sh /home/dev020/pentaho_autostart.sh}