Up And Running

How to start running planq

Running in user (Assume) : salinem

Ensure you have add sudoers, refer Sudo Management

Create Systemd

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

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

[Service]
User=planq
ExecStart=${HOME}/bin/planqd 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/planqd-node.service /etc/systemd/system/

Reload Daemon

sudo systemctl daemon-reload

Enable Service when booting

sudo systemctl enable planqd-node.service

Start Service

sudo systemctl start planqd-node.service

Check Service

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

Last updated