/
[LINUX 4.X] LINUX service setup

[LINUX 4.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
[LINUX 4.X] Message Broker ZIP content
[LINUX 4.X] Message Broker ZIP content
More like this
Message Broker 4.X application config file
Message Broker 4.X application config file
More like this
Prerequisites for deployment
Prerequisites for deployment
Read with this
[LINUX 3.X] LINUX service setup
[LINUX 3.X] LINUX service setup
More like this
Deployment process
Deployment process
Read with 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.