#!/bin/sh # # $FreeBSD: head/net/portfwd/files/portfwd.in 411681 2016-03-23 00:29:52Z zi $ # # PROVIDE: portfwd # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable the portfwd daemon: # # portfwd_enable="YES" # . /etc/rc.subr name=portfwd rcvar=portfwd_enable load_rc_config ${name} : ${portfwd_enable:="NO"} : ${portfwd_config:="%%PREFIX%%/etc/portfwd.conf"} required_files="${portfwd_config}" command="/usr/sbin/daemon" command_args="-f -r %%PREFIX%%/sbin/portfwd -g -c ${portfwd_config}" run_rc_command "$1"