/
[LINUX 3.X] LINUX service setup

[LINUX 3.X] LINUX service setup

Basically, after setting up a configuration, Message Broker in Linux system can be run directly using command line. However there is also a way to run it as a daemon. Below is a short guide how to do it based on the CentOS 8.3.2011.

  • As root go to directory /etc/systemd/system.

  • Create a file which name would match following pattern: servicename.service where servicename is a unique name the service, for instance messagebroker.service

  • The content of this file might be following:

[Unit] Description=FSM MessageBroker service StartLimitIntervalSec=0 [Service] Type=simple Restart=always RestartSec=3 User=e4c WorkingDirectory=/opt/MessageBroker/mb ExecStart=/opt/MessageBroker/mb/MessageBroker [Install]WantedBy=multi-user.target
  • Then running of such defined service is controlled with systemctl

 

 

 

Related content

Installation of FSM Message Broker
Installation of FSM Message Broker
More like this
Message Broker 3.X and 4.X for Linux
Message Broker 3.X and 4.X for Linux
More like this
Message Broker 3.X Installation and Configuration Guide
Message Broker 3.X Installation and Configuration Guide
Read with this
[LINUX 4.X] LINUX service setup
[LINUX 4.X] LINUX service setup
More like this
Deployment process
Deployment process
Read with this
[WINDOWS 3.X] Windows service setup
[WINDOWS 3.X] Windows service setup
More like this

If you'd like to help us improve the documentation, please provide your feedback using the communication channels listed /wiki/spaces/PFCC/pages/1561427969. Learn about support possibilities here.