Last active
August 14, 2023 19:42
-
-
Save mmasaki/3147f23fca698da9ff79 to your computer and use it in GitHub Desktop.
systemd service unit for iperf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/iperf.service | |
[Unit] | |
Description=iperf server | |
After=syslog.target network.target auditd.service | |
[Service] | |
ExecStart=/usr/bin/iperf -s | |
[Install] | |
WantedBy=multi-user.target |
[Unit]
Description=iperf3 server
After=syslog.target network.target auditd.service
[Service]
Type=simple
Restart=on-failure
RestartSec=1
RemainAfterExit=yes
ExecStart=/usr/bin/iperf3 --server --verbose
[Install]
WantedBy=multi-user.target
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you :-) FYI: On Debian the actual binary is /usr/bin/iperf3