Skip to content

Run a System Daemon ​

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.

bash
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

[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.

bash
sudo systemctl daemon-reload
sudo systemctl restart firmachaind

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

bash
journalctl -xe -f -u firmachaind