Skip to content

Install

Website | Twitter | Discord | Explorer

Download the binary file

wget https://github.com/bifrost-finance/bifrost/releases/download/bifrost-v0.9.80/bifrost

Create a service account to run

adduser bifrost_service --system --no-create-home

Create a directory to store the binary and data

mkdir /var/lib/bifrost-data

Move the binary file to the created folder

mv ./bifrost /var/lib/bifrost-data

Set ownership and permissions for the local directory where the chain data is stored

sudo chown -R bifrost_service /var/lib/bifrost-data

Create configuration file

vim /etc/systemd/system/bifrost.service
[Unit]
After=network.target
StartLimitIntervalSec=0
[Service]
Restart=on-failure
RestartSec=10
User= root
SyslogIdentifier=bifrost
SyslogFacility=local7
KillSignal=SIGHUP
ExecStart=/var/lib/bifrost-data/bifrost \
--name YOUR NAME \
--collator \
--force-authoring \
--base-path /var/lib/bifrost-data\
--port=30333 \
--prometheus-external \
--state-cache-size 0 \
-- \
--execution wasm
[Install]
WantedBy=multi-user.target
cd /var/lib/bifrost-data
chmod +x bifrost
chown bifrost_service bifrost
cd $HOME

Start the service

sudo systemctl enable bifrost.service
sudo systemctl start bifrost.service
sudo systemctl status bifrost.service

Check the logs

sudo journalctl -u bifrost.service -f -o cat

Delete node

sudo systemctl stop bifrost.service
sudo systemctl disable bifrost.service
sudo rm /etc/systemd/system/bifrost.service
rm -rf /var/lib/bifrost-data
sudo systemctl daemon-reload