azure-linux-automation/remote-scripts/network-perf-cloudharmony-s...

13 строки
262 B
Bash

#!/bin/bash
#starting iperf server as a daemon
killall iperf3
iperf3 -s -D -p 8004
#
# Verify that the iperf server is running
pgrep iperf3
if [ $? -ne 0 ]; then
echo "iperf server is not running as a daemon"
else
echo "iperf server is running as a daemon"
fi