Running a Comdex Node

Running a Comdex node is crucial for participating in the Comdex network. This guide covers various methods to set up and run a Comdex node, including binary executions.

Running Comdex with Binary

Prerequisites

  • comdex Binary: Build or download the latest on-chain version of comdex.
  • Permissions: Ensure executable permissions for your binary.

Steps

  1. Execute comdex Binary: Run the command ./comdex [command] [flags]. For starting the daemon, use ./comdex start.
  2. Systemd Configuration: Configure comdex to run as a systemd service for reliability.
    • Move the binary to /usr/bin with cp comdex /usr/bin/.
    • Create and edit the systemd service file /etc/systemd/system/comdex.service with appropriate configurations.
  3. Manage Service:
    • Reload systemd: sudo systemctl daemon-reload
    • Restart comdex: sudo systemctl restart comdex
    • Enable on boot: sudo systemctl enable comdex
    • Check logs: journalctl -u comdex -f

Configuring comdex

  • Config Files: Located in $HOME/.comdex/config.
    • config.toml: General settings.
    • app.toml: Application-specific settings.
    • client.toml: Stargaze client settings.