Running a Saga Node

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

Running Saga with Binary

Prerequisites

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

Steps

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

Configuring ssc-1

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