#!/bin/sh # # PROVIDE: http301 # BEFORE: DAEMON # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable iperf in server mode: # # http302_enable="YES" # . /etc/rc.subr name=http302 rcvar=`set_rcvar` command=/usr/local/bin/tcpserver command_args="-R -H -l 0 172.31.255.1 8081 /usr/local/bin/http302 &" load_rc_config ${name} http301_enable=${http301_enable-"NO"} #### # tcpserver does not generate a pid file run_rc_command "$1"