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!
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!
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
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
|
DetailsDescription:
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
Friday, 18 May 2012, 02:14 GMT
Reason for closing: Fixed
Additional comments about closing: iperf-2.0.5-5
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?
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.
To create an udp server:
cd /etc/rc.d
ln -s iperf iperf-udp
cd /etc/conf.d
echo 'DAEMON_OPTS=("-u")' > iperf-udp
if you wish drop iperf i can handle it.