Running a Teritori Node

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

Running Teritori with Binary

Prerequisites

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

Steps

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

Configuring teritorid

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