Up And Running

How to start running Crossfi

Ensure you have add sudoers to user salinem, refer Sudo Management

Running in user (Assume) : salinem We never used this username in our production !

Create Systemd

Create file in ${HOME}/systemd/crossfi-node.service

export HOME="/mainnet/salinem"
cat > ${HOME}/systemd/crossfi-node.service  <<EOF
[Unit]
Description=crossfi node service
After=network-online.target

[Service]
User=salinem
ExecStart=${HOME}/bin/crossfid start 
Restart=on-failure
RestartSec=3
LimitNOFILE=500000
LimitNPROC=500000
Environment="HOME=${HOME}"


[Install]
WantedBy=multi-user.target

EOF

Linking to Systemd

sudo cp ${HOME}/systemd/crossfi-node.service /etc/systemd/system/

Reload Daemon

sudo systemctl daemon-reload

Enable Service when booting

sudo systemctl enable crossfi-node.service

Start Service

sudo systemctl start crossfi-node.service

Check Service

sudo systemctl status crossfi-node.service
sudo journalctl -fu crossfi-node.service

Last updated