Starting with two fresh nodes A and B: If you start node A and (before node A completes IBD) start a second node B with -addnode={address of node A}, node B will stall and not proceed in IBD.
0mkdir -p /tmp/nodea /tmp/nodeb
1
2cat > /tmp/nodea/bitcoin.conf << EOF
3prune=1000
4bind=127.0.0.1:8333
5EOF
6
7cat > /tmp/nodeb/bitcoin.conf << EOF
8prune=1000
9rpcport=18331
10bind=127.0.0.1:18335
11addnode=127.0.0.1:8333
12EOF
and then start both nodes however you prefer, e.g.
0bitcoind -datadir=/tmp/nodea --daemonwait
1bitcoind -datadir=/tmp/nodeb --daemonwait
And node B will not advance:
0tail /tmp/nodeb/debug.log
Shutdown node A and node B comes to life!:
0bitcoin-cli -datadir=/tmp/nodea stop
1tail /tmp/nodeb/debug.log