Configuring Mantrachain with Systemd
The best way to runmantrachaind as a daemon service is by also leveraging Cosmovisor. Cosmovisor is a tool designed for managing and upgrading Cosmos SDK-based blockchain nodes. It simplifies the process of running a validator or full node by handling automatic upgrades and minimizing downtime
One great advantage of using Cosmovisor is its automated upgrade process. It polls an `upgrade-info.json` file that is created by the x/upgrade module at upgrade height, and then can automatically download the new binary, stop the current binary, switch from the old binary to the new one, and finally restart the node with the new binary.
Pre-Requisites
Go Requirement
You will need to be running, at minimum, go1.20 to run Cosmovisor.
Set Up Cosmovisor
Set up cosmovisor to ensure any future upgrades happen flawlessly. To install Cosmovisor:Configure mantrachaind as a Service
The systemd service manager allows the mantrachaind binary to run as a service, instead of as a command-line application. (See https://systemd.io for more information.)
Starting, Stopping and Restarting mantrachaind
journalctl command to check on the node’s progress.