Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Starting Pentaho bi-ce 5.2 as service using systemd

  1. #1
    Join Date
    Nov 2014
    Posts
    9

    Default Starting Pentaho bi-ce 5.2 as service using systemd

    Dear All,

    I'm trying to create a service that automatically starts the pentaho-bi-ce 5.2 on boot.

    I'm running on Fedora 20

    Has anybody done this because I can't find any threads about it?

    I have created a .service file that looks like this:

    Code:
    [Unit]
    Description=Pentho 5.2 Bi-server-CE
    After=syslog.target
    After=network.target
    After=mysqld.service
    
    [Service]
    Type=simple
    User=root
    Group=root
    Environment=JAVA_HOME=/usr/java/latest
    ExecStart=/opt/pentaho52/biserver-ce/start-pentaho.sh
    ExecStartPost=/bin/echo pentaho...end of unitfile
    
    TimeoutSec=300
    
    [Install]
    WantedBy=graphical.target
    The service itself works both when manually started and on boot and the output looks the same as when starting the script directly but the server doesnt start anyways. The output of the service looks like this:

    Code:
    [root@localhost system]# systemctl status pentaho52bice.service 
    pentaho52bice.service - Pentho 5.2 Bi-server-CE
       Loaded: loaded (/lib/systemd/system/pentaho52bice.service; enabled)
       Active: inactive (dead) since tis 2015-02-03 17:11:07 CET; 40min ago
      Process: 4474 ExecStartPost=/bin/echo pentaho...end of unitfile (code=exited, status=0/SUCCESS)
      Process: 4473 ExecStart=/opt/pentaho52/biserver-ce/start-pentaho.sh (code=exited, status=0/SUCCESS)
     Main PID: 4473 (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/pentaho52bice.service
    
    feb 03 17:11:07 localhost.localdomain echo[4474]: pentaho...end of unitfile
    feb 03 17:11:07 localhost.localdomain systemd[1]: Started Pentho 5.2 Bi-server-CE.
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: DEBUG: Using JAVA_HOME
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: DEBUG: _PENTAHO_JAVA_HOME=/usr/java/latest
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: DEBUG: _PENTAHO_JAVA=/usr/java/latest/bin/java
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: Using CATALINA_BASE:   /opt/pentaho52/biserver-ce/tomcat
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: Using CATALINA_HOME:   /opt/pentaho52/biserver-ce/tomcat
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: Using CATALINA_TMPDIR: /opt/pentaho52/biserver-ce/tomcat/temp
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: Using JRE_HOME:        /usr/java/latest
    feb 03 17:11:07 localhost.localdomain start-pentaho.sh[4473]: Using CLASSPATH:       /opt/pentaho52/biserver-ce/tomcat/bin/bootstrap.jar
    Does anybody have an idea what the problem could be?

    Thanks


    Bernhard

  2. #2
    Join Date
    Nov 2014
    Posts
    150

    Default

    I'm not really sure, but I believe the process is not being sent to background. So maybe you should change the ExecStart command to:

    nohup /opt/pentaho52/biserver-ce/start-pentaho.sh &
    Best Regards,

    Hugo Cerqueira
    Business Intelligence / Data Warehouse Analyst

  3. #3
    Join Date
    Nov 2014
    Posts
    9

    Default

    Thanks for the reply Hugo,

    I found what the problem was...type has to be set to forking instead of simple.

    //Bernhard

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.