To run a self-hosted mainnet RPC, please follow the instructions in the README of the MainSettlementBus repository.
If you choose to run the process through a command instead of building a Docker image, we recommend using PM2 to manage and run your RPC in the background. You can find it here.