From a17cc9e702aad99d5c5b3a7637c03037d4207c53 Mon Sep 17 00:00:00 2001 From: Jonathan Adjei Date: Sat, 29 Jul 2023 14:17:59 +0100 Subject: [PATCH] Allow SPOs to reload topology configuration changes (#1112) * Added topology config refresh ability to systemd reload Co-authored-by: RdLrT <3169068+rdlrt@users.noreply.github.com> --------- Co-authored-by: jadjei Co-authored-by: RdLrT <3169068+rdlrt@users.noreply.github.com> --- docs/operate-a-stake-pool/cardano-relay-configuration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/operate-a-stake-pool/cardano-relay-configuration.md b/docs/operate-a-stake-pool/cardano-relay-configuration.md index 0033f7cb3a..e710e83d9b 100644 --- a/docs/operate-a-stake-pool/cardano-relay-configuration.md +++ b/docs/operate-a-stake-pool/cardano-relay-configuration.md @@ -162,6 +162,7 @@ User = <$USER> Type = simple WorkingDirectory = <$HOME>/cardano-testnet ExecStart = /bin/bash -c '<$HOME>/cardano-testnet/startTestNode.sh' +ExecReload = pkill -HUP cardano-node KillSignal = SIGINT RestartKillSignal = SIGINT TimeoutStopSec = 300 @@ -220,3 +221,9 @@ Dec 1 15:31:40 localhost cardano-testnode[162851]: #033[35m[localhos:cardano.no ``` Syncing the blockchain from zero can take a while. Please be patient. If you want to stop syncing, you can do so using the command `sudo systemctl stop cardano-node`. Restarting the relay node will resume syncing the blockchain. + +## Reloading the Topology configuration + +In case you have made an update to `topology.json` file, since this node is assumed to be running in P2P mode - you can can load these changes without having to perform a full node restart using command below: + + sudo systemctl reload cardano-node