Running a Stargaze Node

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

Running Stargaze with Binary

Prerequisites

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

Steps

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

Configuring Stargazed

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