-
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.
-
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.
-
Copy files to /etc/systemd/system/ if the
.service files are correct.
-
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
-
To verify whether the servers are running:
-
Check status:
systemctl status <service
name>
-
Verify ActiveMQ log:
<3DOrchestrate_InstallDir>/exe1/activemq-one/data/activemq.log
-
Visit:
https://<3dorchstrate-server>:<port>/SMAExeServer-REST/Ping
|