Launching the relay node
Set up cardano-node as a systemd service so it runs in the background and survives reboots.
Create the systemd service
cat <<EOF | sudo tee /etc/systemd/system/cardano-node.service
[Unit]
Description=Cardano Relay Node
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=cardano
Group=cardano
WorkingDirectory=/home/cardano/cnode
ExecStart=/home/cardano/.local/bin/cardano-node run \\
--config /home/cardano/cnode/config/config.json \\
--topology /home/cardano/cnode/config/topology.json \\
--database-path /home/cardano/cnode/db \\
--socket-path /home/cardano/cnode/sockets/node.socket \\
--host-addr 0.0.0.0 \\
--port 3001
KillSignal=SIGINT
RestartKillSignal=SIGINT
StandardOutput=journal
StandardError=journal
SyslogIdentifier=cardano-relay
LimitNOFILE=1048576
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOFEnable and start

Verify the node is running

Architecture overview
Role
Purpose

Topology: connecting relays to your BP
On each relay — add your BP as a local root peer
On the BP — add your relays only
Last updated