File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ echo "Launching Bitcoin node in $BITCOIN_NETWORK mode..."
3333/usr/sbin/runuser -u bitcoin -- $BTC_BIN_PATH /bitcoind $NETWORK &
3434BITCOIND_PID=$!
3535
36+ # Determine the bitcoind PID file path
37+ BITCOIND_PID_FILE=" /home/bitcoin/.bitcoin/$BITCOIN_NETWORK /bitcoind.pid"
38+ echo " Reading Bitcoind PID from: $BITCOIND_PID_FILE "
39+
3640# Now wait for the RPC
3741for i in {1..30}; do
3842 /usr/sbin/runuser -u bitcoin -- $BTC_BIN_PATH /bitcoin-cli $NETWORK getblockchaininfo > /dev/null 2>&1 && break
4751
4852echo " Starting ebpf-extractor"
4953# Run ebpf-extractor as root (needs CAP_SYS_ADMIN for BPF)
50- exec /usr/local/bin/ebpf-extractor --no-idle-exit --nats-address nats://nats:4222 --bitcoind-path $BTC_BIN_PATH /bitcoind
54+ exec /usr/local/bin/ebpf-extractor \
55+ --no-idle-exit \
56+ --nats-address nats://nats:4222 \
57+ --bitcoind-path " $BTC_BIN_PATH /bitcoind" \
58+ --bitcoind-pid-file " $BITCOIND_PID_FILE "
You can’t perform that action at this time.
0 commit comments