Skip to content

Instantly share code, notes, and snippets.

@mmasaki
Last active August 14, 2023 19:42
  • Star 18 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mmasaki/3147f23fca698da9ff79 to your computer and use it in GitHub Desktop.
systemd service unit for iperf
# /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
@M9k
Copy link

M9k commented Dec 1, 2020

Thanks!

@dmad
Copy link

dmad commented Aug 20, 2022

Thank you :-) FYI: On Debian the actual binary is /usr/bin/iperf3

@n3gwg
Copy link

n3gwg commented Nov 9, 2022

[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