|
Last change
on this file was 14358, checked in by rick, 7 years ago |
|
Fix documentation files no longer installed
|
-
Property svn:executable
set to
*
|
|
File size:
452 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | #
|
|---|
| 3 | # PROVIDE: http301
|
|---|
| 4 | # BEFORE: DAEMON
|
|---|
| 5 | # KEYWORD: shutdown
|
|---|
| 6 | #
|
|---|
| 7 | # Add the following line to /etc/rc.conf to enable iperf in server mode:
|
|---|
| 8 | #
|
|---|
| 9 | # http302_enable="YES"
|
|---|
| 10 | #
|
|---|
| 11 | . /etc/rc.subr
|
|---|
| 12 |
|
|---|
| 13 | name=http302
|
|---|
| 14 | rcvar=`set_rcvar`
|
|---|
| 15 |
|
|---|
| 16 | command=/usr/local/bin/tcpserver
|
|---|
| 17 | command_args="-R -H -l 0 172.31.255.1 8081 /usr/local/bin/http302 &"
|
|---|
| 18 |
|
|---|
| 19 | load_rc_config ${name}
|
|---|
| 20 |
|
|---|
| 21 | http301_enable=${http301_enable-"NO"}
|
|---|
| 22 |
|
|---|
| 23 | ####
|
|---|
| 24 | # tcpserver does not generate a pid file
|
|---|
| 25 |
|
|---|
| 26 | run_rc_command "$1"
|
|---|
| 27 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.