Last change
on this file since 13757 was 12922, checked in by huub, 10 years ago |
cleanup rc.d remove rcvar statements and named
|
-
Property svn:executable
set to
*
|
File size:
622 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 |
|
---|
15 | #command=/usr/local/bin/iperf
|
---|
16 | #command_args="-s -D"
|
---|
17 |
|
---|
18 | load_rc_config ${name}
|
---|
19 |
|
---|
20 | iperf_enable=${iperf_enable-"NO"}
|
---|
21 |
|
---|
22 | ####
|
---|
23 | # iperf does not generate a pid file
|
---|
24 | # iperf_pidfile=${iperf_pidfile-"/var/run/.pid"}
|
---|
25 | # pidfile="${iperf_pidfile}"
|
---|
26 |
|
---|
27 | # Quick to start iperf in deamon mode and make sure logfiles get writting in
|
---|
28 | # parseable way
|
---|
29 | start_cmd="sh -c 'iperf -s -D -y c 1>>/var/log/iperf.log 2>>/var/log/iperf.log'"
|
---|
30 |
|
---|
31 | run_rc_command "$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.