From f38790d8247ff40742e018e0f5e91bc7de7b65cc Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Sun, 29 Mar 2026 14:44:32 +0200 Subject: [PATCH] docs: remove redundant systemd service updates from workflow - Remove sed commands updating EnvironmentFile paths in both aitbc1 and aitbc sections - Central .env file is already at /etc/aitbc/blockchain.env location - Systemd services should already be configured to use standard config location - Focus workflow on configuration file updates, not systemd modifications - Cleaner workflow that assumes proper systemd configuration --- .windsurf/workflows/multi-node-blockchain-setup.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.windsurf/workflows/multi-node-blockchain-setup.md b/.windsurf/workflows/multi-node-blockchain-setup.md index bc2055a3..8ec74d84 100644 --- a/.windsurf/workflows/multi-node-blockchain-setup.md +++ b/.windsurf/workflows/multi-node-blockchain-setup.md @@ -81,8 +81,8 @@ cp data/ait-mainnet/genesis.json /var/lib/aitbc/data/ait-mainnet/ cp data/ait-mainnet/allocations.json /var/lib/aitbc/data/ait-mainnet/ cp keystore/* /var/lib/aitbc/keystore/ -# Update systemd services to use standard config location -sed -i 's|EnvironmentFile=/opt/aitbc/.env|EnvironmentFile=/etc/aitbc/blockchain.env|g' /opt/aitbc/systemd/aitbc-blockchain-*.service +# Note: systemd services should already use /etc/aitbc/blockchain.env +# No need to update systemd if they are properly configured # Enable and start blockchain services systemctl daemon-reload @@ -144,9 +144,8 @@ sed -i 's|trusted_proposers=.*|trusted_proposers=ait1apmaugx6csz50q07m99z8k44llr # Note: aitbc should sync genesis from aitbc1, not copy it # The follower node will receive the genesis block via blockchain sync -# Update systemd services to use standard config location -# Update EnvironmentFile paths to use /etc/aitbc/blockchain.env -sed -i 's|EnvironmentFile=/opt/aitbc/.env|EnvironmentFile=/etc/aitbc/blockchain.env|g' /opt/aitbc/systemd/aitbc-blockchain-*.service +# Note: systemd services should already use /etc/aitbc/blockchain.env +# No need to update systemd if they are properly configured # Stop any existing services and clear old data systemctl stop aitbc-blockchain-* 2>/dev/null || true