You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/iperf/files/iperf.initd-r1

15 lines
437 B

#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="IP bandwidth measurement server"
command="/usr/bin/iperf"
command_background="yes"
pidfile="/run/${SVCNAME}.pid"
command_args="-s ${IPERF_OPTS}"
# note: iperf has a -D/--daemon flag but we seem to hit a bug
# where it starts to eat all CPU after client disconnect,
# see bug #344875