Launching the block producer
Configure and launch the block producer as a systemd service.
1) Transfer keys to the BP server
Source file
Destination
cd ~/cnode/keys
mv myPool.kes-000.skey myPool.kes.skey
mv myPool.node-000.opcert myPool.node.opcert
chmod 400 *2) Create the systemd service
cat <<EOF | sudo tee /etc/systemd/system/cardano-node.service
[Unit]
Description=Cardano Block Producer
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 \\
--shelley-kes-key /home/cardano/cnode/keys/myPool.kes.skey \\
--shelley-vrf-key /home/cardano/cnode/keys/myPool.vrf.skey \\
--shelley-operational-certificate /home/cardano/cnode/keys/myPool.node.opcert
KillSignal=SIGINT
RestartKillSignal=SIGINT
StandardOutput=journal
StandardError=journal
SyslogIdentifier=cardano-bp
LimitNOFILE=1048576
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
KES key rotation
Last updated