- Launch nodes at designated port numbers
Rocky Linux 9.4, bash
Runs each node process in its own “screen.” List screens with screens -ls. (Enter screen with -r and exit pressing Ctrl-a d.) An alternative is commented-out in the script. Replace with server’s local IP address.
for (( c=53300; c<=53349; c++ ))
do
#safenode --ip=<IP> --port $c --max_log_files=10 --max_archived_log_files=0 2>&1 > /dev/null & disown
screen -LdmS "safenode$c" safenode --ip=<IP> --port $c --max_log_files=10 --max_archived_log_files=0
echo "starting node on next port following $c with 360 second delay..."
sleep 360
done
3 Likes