Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#28977 - [iperf] add initscripts

Attached to Project: Community Packages
Opened by Sébastien Luttringer (seblu) - Saturday, 17 March 2012, 23:19 GMT
Last edited by Sébastien Luttringer (seblu) - Friday, 18 May 2012, 02:14 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Like netperf, iperf need a server to be run to user with a client. It may be useful to have an rc.d script which allow iperf to be runned at boot.

Unlike netperf, iperf doesn't handle udp and tcp with the same daemon. It may be interessting to be able to run tcp and udp version of the daemon.

I can help.
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Friday, 18 May 2012, 02:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  iperf-2.0.5-5
Comment by Giovanni Scafora (giovanni) - Sunday, 18 March 2012, 12:14 GMT
Hi Seblu,

your help is greatly appreciated.
I don't use iperf anymore, so I'm going to accept your feature request.
Have you got any rc.d script for handling udp and tcp with the daemon?
Comment by Sébastien Luttringer (seblu) - Tuesday, 03 April 2012, 13:08 GMT
Currently i've 2 rc.d script, one for udp, one for tcp.

Complexity come from iperf doesn't write pid files. Instead of, it display pid of deamon on stderr when it start. Catching it, parsing output is difficult because it doesn't close stderr after printing this information. sed/awk output parser wait for stderr to be closed.

If we want launch (at least) a couple of daemon (one for udp, one for tcp) we cannot use pidof. One easy solution is to use something like start-stop-daemon (from community) to create pidfile and daemonize iperf. I don't think it's allowed to have a package in extra depending of software in community.
I can provide you 2 rc.d scripts based on start-stop-daemon which work for both udp and tcp.

If you prefer stay independant from start-stop-daemon, i can provide 2 rc.d scripts with a daemon mode handled by bash without using iperf daemon mode.
Comment by Sébastien Luttringer (seblu) - Tuesday, 03 April 2012, 15:39 GMT
Those files can be shipped with iperf. They don't use start-stop-daemon.

To create an udp server:
cd /etc/rc.d
ln -s iperf iperf-udp
cd /etc/conf.d
echo 'DAEMON_OPTS=("-u")' > iperf-udp
Comment by Sébastien Luttringer (seblu) - Friday, 06 April 2012, 15:07 GMT
if you'r interested i can send you a svn patch. You just have to apply :)
Comment by Giovanni Scafora (giovanni) - Friday, 06 April 2012, 19:05 GMT
ok, send me the patch
Comment by Sébastien Luttringer (seblu) - Tuesday, 15 May 2012, 16:35 GMT
Here is a patch which add iperf and iperf-udp initscript.

if you wish drop iperf i can handle it.
Comment by Giovanni Scafora (giovanni) - Thursday, 17 May 2012, 09:14 GMT
Just moved iperf from extra to community repo, so feel free to adopt and maintain it.

Loading...