Configuring the 3DOrchestrate Distribution Server to Run as a Linux Service

You can use the deployment utility to set up the TomEE application server to run the 3DOrchestrate Distribution Server as a Linux Service.

Create two Unit File scripts (one for ActiveMQ and one for TomEE Application Server) in the <3DOrchestrate_InstallDir>/config/ directory, then copy them to /etc/systemd/system/.


Before you begin: Login to the Linux server with root or sudo privileges.
  1. Create a Unit File for the 3DOrchestrate ActiveMQ Server in the below directory.

    <3DOrchestrateInstallDirectory>/config/3DOrchestrate-ActiveMQ.service

    Sample content:

    [Unit]
    Description=3DOrchestrate ActiveMQ Server
    After=syslog.target network.target
    
    [Service]
    User=<UserThatRuns3DOrchestrateServer>
    Group=<UserThatRuns3DOrchestrateServersGroup>
    Type=forking
    TimeoutSec=300
    ExecStart=<3DOrchestrate_Deploy_Dir>/activemq-one/bin/startup.sh
    ExecStop=<3DOrchestrate_Deploy_Dir>/activemq-one/bin/shutdown.sh
    
    [Install]
    WantedBy=multi-user.target
    

    review the contents and save the file.

  2. Create a Unit File for the 3DOrchestrate TomEE Application Server.

    <3DOrchestrateInstallDirectory>/config/3DOrchestrate-TomEE.service

    Sample content:

    [Unit]
    Description=3DOrchestrate Application Server
    Requires=3DOrchestrate-ActiveMQ.service
    After=syslog.target network.target
    
    [Service]
    User=<UserThatRuns3DOrchestrateServer>
    Group=<UserThatRuns3DOrchestrateServersGroup>
    Type=forking
    TimeoutSec=300
    ExecStart=<3DOrchestrate_Deploy_Dir>/tomee/bin/startup.sh
    ExecStop=<3DOrchestrate_Deploy_Dir>/tomee/bin/shutdown.sh
    
    [Install]
    WantedBy=multi-user.target
    
    review and save the file.

  3. Copy files to /etc/systemd/system/ if the .service files are correct.
  4. Apply the following changes:

    • Reload systemctl: sudo systemctl daemon-reload
    • Register services for boot time:
      • sudo systemctl enable 3DOrchestrate-ActiveMQ.service
      • sudo systemctl enable 3DOrchestrate-TomEE.service
    • Start the services now:
      • sudo systemctl start 3DOrchestrate-ActiveMQ.service
      • sudo systemctl start 3DOrchestrate-TomEE.service

  5. To verify whether the servers are running:
    1. Check status: systemctl status <service name>
    2. Verify ActiveMQ log: <3DOrchestrate_InstallDir>/exe1/activemq-one/data/activemq.log
    3. Visit: https://<3dorchstrate-server>:<port>/SMAExeServer-REST/Ping