Skip to main content

Running pryzm with Binary

To run pryzm using the binary, follow these steps:

Prerequisites

Before proceeding with running pryzm with the binary, ensure that the following prerequisites are met:

  • pryzmd Binary: Build or download the latest on chain version of pryzmd.
  • Correct permissions: remember to assign executable permissions to your binary.

Running pryzmd Binary

To run pryzmd using the binary, execute the following command in the terminal:

./pryzmd [command] [flags]

Replace [command] and [flags] with the appropriate command and flags for your pryzm setup. For example, to start the pryzm daemon, use the following command:

./pryzmd start

Configure systemd service for pryzmd

Copy the pryzmd binary to /usr/bin

cp pryzmd /usr/bin/

Edit the config at /etc/systemd/system/pryzmd.service

[Unit]
Description=pryzmd

[Service]
WorkingDirectory=/usr/bin
ExecStart=/bin/bash -c '/usr/bin/pryzmd start'
Type=simple
Restart=always
RestartSec=5
User=root

[Install]
WantedBy=multi-user.target

You can add the Home path to your ExecStart command if you are not storing the data in default directory ($HOME/.pryzm)

Starting and restarting the systemd service

sudo systemctl daemon-reload
sudo systemctl restart pryzmd
sudo systemctl status pryzmd

# enable start on system boot
sudo systemctl enable pryzmd

# To check Logs
journalctl -u pryzmd -fu

pryzmd Help Output

To view the available commands and flags for pryzmd, you can use the help flag. Run the following command to display the help output:

./pryzmd --help

This command will provide detailed information about the usage of pryzmd and its available commands and flags.

Configuring Pryzmd

Pryzmd, being a Cosmos-based network, can be configured using three configuration files located by default in the $HOME/.pryzmd/config directory:

config.toml: This file contains the general configuration settings for Pryzmd.

app.toml: This file includes the application-specific configuration settings for Pryzmd.

client.toml: This file contains the configuration settings for the Pryzm client.