Skip to content

Monsta Service Management via Command Line (Linux)

This article describes the standard procedures to start, stop, and check the status of Monsta services on Linux operating systems using the systemd (systemctl) utility.


Starting Monsta services must follow a specific order of dependencies to ensure the underlying infrastructure is ready before the routing and update modules are activated.

Run the commands below sequentially in the terminal with superuser privileges (sudo):

Terminal window
# 1. Start the database
sudo systemctl start monsta-com.monstadb.service
# 2. Start monagent, responsible for collections
sudo systemctl start monsta-com.monagent.service
# 3. Start the system core, responsible for logs and the interface between other services and the database
sudo systemctl start monsta-com.monkernel.service
# 4. Start the HTTP server responsible for providing the HTTP interface to the user
sudo systemctl start monsta-com.monrouter.service
# 5. Start the subsystem that periodically checks for new updates
sudo systemctl start monsta-com.monstaupd.service

To stop the services, you can choose to stop them individually or all at once.

Replace <nome-do-servico> with the corresponding identifier (for example, monstaupd, monrouter, etc.):

Terminal window
sudo systemctl stop monsta-com.<nome-do-servico>.service

To stop all Monsta ecosystem services at once quickly, use the wildcard (*):

Terminal window
sudo systemctl stop monsta-com.*

To check whether a specific service is running, active, and if there are recent log messages related to its state, use the status command:

Terminal window
sudo systemctl status monsta-com.<nome-do-servico>.service

Example to check the database status:

Terminal window
sudo systemctl status monsta-com.monstadb.service