|
Last change
on this file since 10417 was 10417, checked in by rick, 14 years ago |
|
Merging and cleanups of files found in various other places and trees of SVN.
|
-
Property svn:executable
set to
*
|
|
File size:
464 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | #
|
|---|
| 3 | # PROVIDE: iperf
|
|---|
| 4 | # BEFORE: DAEMON
|
|---|
| 5 | # KEYWORD: shutdown
|
|---|
| 6 | #
|
|---|
| 7 | # Add the following line to /etc/rc.conf to enable iperf in server mode:
|
|---|
| 8 | #
|
|---|
| 9 | # iperf_enable="YES"
|
|---|
| 10 | #
|
|---|
| 11 | . /etc/rc.subr
|
|---|
| 12 |
|
|---|
| 13 | name=iperf
|
|---|
| 14 | rcvar=`set_rcvar`
|
|---|
| 15 |
|
|---|
| 16 | command=/usr/local/bin/iperf
|
|---|
| 17 | command_args="-s -D"
|
|---|
| 18 |
|
|---|
| 19 | load_rc_config ${name}
|
|---|
| 20 |
|
|---|
| 21 | iperf_enable=${iperf_enable-"NO"}
|
|---|
| 22 |
|
|---|
| 23 | ####
|
|---|
| 24 | # iperf does not generate a pid file
|
|---|
| 25 | # iperf_pidfile=${iperf_pidfile-"/var/run/.pid"}
|
|---|
| 26 | # pidfile="${iperf_pidfile}"
|
|---|
| 27 |
|
|---|
| 28 | run_rc_command "$1"
|
|---|
| 29 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.