Up and Running

Ensure you have add sudoers

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

Create Systemd

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

export USERNAME=$(whoami)
cat > ${HOME}/systemd/band-node.service  <<EOF
[Unit]
Description=band node service
After=network-online.target

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


[Install]
WantedBy=multi-user.target

EOF

Linking to Systemd

ln -sf ${HOME}/systemd/band-node.service /etc/systemd/system/

Reload Daemon

sudo systemctl daemon-reload

Enable Service when booting

sudo systemctl enable band-node.service

Start Service

sudo systemctl start band-node.service

Check Service

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

Last updated