FIRMACHAIN
OFFICIAL WEBMEDIUMTELEGRAMREDDIT
  • Overview
  • # NODE & VALIDATORS GUIDE
    • Run a full node
      • Specification
      • OS package settings
      • Installation firmachaind
      • Upgrade your node
      • Join a FirmaChain network
        • Snapshot
        • Syncing from genesis
        • State sync
      • Run a Cosmovisor
        • Guide
        • Example
      • Run a System Deamon
    • Validator
      • Management key
      • Register a validator
      • Edit a validator
      • Unjail
      • FAQ
    • Genesis Validator
    • History
      • Upgrade Mainnet
      • Reward Testnet (Terminated)
        • Participate
        • Test app
  • # DEVELOPER
    • EndPoints
    • firma-js
    • firmachaind
      • commands
      • sub commands
        • keys
        • query (q)
        • transaction (tx)
    • Modules
      • Contract
        • Log
        • File
        • Bulk Insert
        • Utils
      • NFT
        • Usage
        • Bulk Insert (minting)
        • Utils
      • Token
        • Usage
        • Utils
  • # General Guide
    • Station
    • Ledger
      • Install
      • Usage on FirmaStation
      • Usage on FirmaChain-CLI
Powered by GitBook
On this page
  1. # NODE & VALIDATORS GUIDE
  2. Run a full node

Run a System Deamon

It is absolutely crucial that the FirmaChain nodes remain active at all times. The simplest solution would be to register this as a system. After a reboot or any other type of event, the service registered on the system will be activated and hence, FirmaChain will be able to start the operation of the nodes.

The following is a how-to-guide for registering on the system service.

sudo tee /etc/systemd/system/firmachaind.service > /dev/null <<EOF  
[Unit]
Description=Firmachain Node
After=network-online.target

[Service]
User=$USER
ExecStart=$(which firmachaind) start
Restart=always
RestartSec=3
LimitNOFILE=65535

Environment="DAEMON_HOME=$HOME/.firmachain"
Environment="DAEMON_NAME=firmachaind"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=true"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=false"

[Install]
WantedBy=multi-user.target
EOF

Now you are all set to operate FirmaChain using daemon. Please join our network using the command provided below.

sudo systemctl daemon-reload
sudo systemctl restart firmachaind

Using the following, you can check the FirmaChain network log registered using the System Daemon.

journalctl -xe -f -u firmachaind
PreviousExampleNextValidator

Last updated 5 months ago