From dc259fce1b5179732fb24bec4635931f2e2ae2fb Mon Sep 17 00:00:00 2001 From: aitbc Date: Wed, 15 Apr 2026 08:33:30 +0200 Subject: [PATCH] Change Python interpreter from system python3 to venv python in blockchain sync service - Update ExecStart to use /opt/aitbc/venv/bin/python instead of /usr/bin/python3 - Ensures service uses virtual environment Python interpreter for consistency --- systemd/aitbc-blockchain-sync.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/aitbc-blockchain-sync.service b/systemd/aitbc-blockchain-sync.service index 9435b46d..eeba594c 100644 --- a/systemd/aitbc-blockchain-sync.service +++ b/systemd/aitbc-blockchain-sync.service @@ -10,7 +10,7 @@ WorkingDirectory=/opt/aitbc/apps/blockchain-node EnvironmentFile=/etc/aitbc/blockchain.env Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin Environment=PYTHONPATH=/opt/aitbc/apps/blockchain-node/src:/opt/aitbc/apps/blockchain-node/scripts -ExecStart=/usr/bin/python3 -m aitbc_chain.chain_sync --redis redis://localhost:6379 --node-id ait18yefwwclgmyu2a74zvv0hj3a3xw6gxsn4akrj963kp069j9xy5ns3kurun --rpc-port 8006 --leader-host 10.1.223.40 --source-host 10.1.223.40 --source-port 8006 --import-host 10.1.223.40 --import-port 8006 +ExecStart=/opt/aitbc/venv/bin/python -m aitbc_chain.chain_sync --redis redis://localhost:6379 --node-id ait18yefwwclgmyu2a74zvv0hj3a3xw6gxsn4akrj963kp069j9xy5ns3kurun --rpc-port 8006 --leader-host 10.1.223.40 --source-host 10.1.223.40 --source-port 8006 --import-host 10.1.223.40 --import-port 8006 Restart=always RestartSec=5 StandardOutput=journal