#!/bin/bash # Show recent logs for p2pds nodes NODE=${1:-0} if [ "$NODE" = "1" ] || [ "$NODE" = "0" ]; then if [ -f /tmp/p2pds-node1.log ]; then echo "=== NODE 1 ===" tail -30 /tmp/p2pds-node1.log echo "" fi fi if [ "$NODE" = "2" ] || [ "$NODE" = "0" ]; then if [ -f /tmp/p2pds-node2.log ]; then echo "=== NODE 2 ===" tail -30 /tmp/p2pds-node2.log fi fi